Skip to content

Commit

Permalink
- Disabled position independent executable for MinGW
Browse files Browse the repository at this point in the history
This broke MinGW-w64 but was ignored with tdm-gcc.
  • Loading branch information
drfrag666 committed Apr 26, 2018
1 parent 5a71921 commit 1acba42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -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" )
Expand Down

0 comments on commit 1acba42

Please sign in to comment.