- Disabled position independent executable for MinGW

This broke MinGW-w64 but was ignored with tdm-gcc.
This commit is contained in:
drfrag666 2018-06-18 12:46:52 +02:00 committed by Christoph Oelckers
parent 211bd0b1b0
commit 720bb485be
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ else()
# If we're compiling with a custom GCC on the Mac (which we know since g++-4.2 doesn't support C++11) statically link libgcc.
set( ALL_C_FLAGS "-static-libgcc" )
endif()
else()
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" )