- Disabled position independent executable for MinGW

This broke MinGW-w64 but was ignored with tdm-gcc.
This commit is contained in:
drfrag666 2018-04-26 12:59:34 +02:00
parent 5a7192137d
commit 1acba42baa

View file

@ -238,7 +238,7 @@ else()
set( ALL_C_FLAGS "-static-libgcc" )
endif()
if( NOT APPLE )
if( NOT APPLE AND 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" )