diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c6e494..c3cd3f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -178,9 +178,8 @@ else() set( ALL_C_FLAGS "-static-libgcc" ) endif() elseif( NOT MINGW ) - # Generic GCC/Clang requires position independent executable to be enabled explicitly - set( ALL_C_FLAGS "${ALL_C_FLAGS} -fPIE" ) - set( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie" ) + # Generic GCC/Clang requires position independent code to be enabled explicitly + set( ALL_C_FLAGS "${ALL_C_FLAGS} -fPIC" ) endif( APPLE ) endif()