From b53b2b6e1182efaf532d6eb9377a321e6e13a7e4 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 21 Mar 2024 14:27:16 +0100 Subject: CMake: Remove "-no-pie" build option libdecor/build/Makefile: unused anyway (previously used building demos) src/CMakeLists.txt: broke some user builds, see fltk.general, thread "-no-pie in FLTK Libraries build." (Mar 17, 2024). Todo: check usage of "-fPIC" (libdecor builds) --- src/CMakeLists.txt | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 062078ef6..58954c2ca 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -765,9 +765,6 @@ if(UNIX AND FLTK_BACKEND_WAYLAND) if(DBUS_FOUND) list(APPEND OPTIONAL_LIBS "${DBUS_LDFLAGS}") endif(DBUS_FOUND) - if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux" AND NOT FLTK_BUILD_SHARED_LIBS) - list(APPEND OPTIONAL_LIBS "-no-pie") - endif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux" AND NOT FLTK_BUILD_SHARED_LIBS) endif(UNIX AND FLTK_BACKEND_WAYLAND) ####################################################################### -- cgit v1.2.3