From 720bb485bebed0cc8ad4dd2a90996a4b55254447 Mon Sep 17 00:00:00 2001 From: drfrag666 Date: Mon, 18 Jun 2018 12:46:52 +0200 Subject: [PATCH] - Disabled position independent executable for MinGW This broke MinGW-w64 but was ignored with tdm-gcc. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cb3beeea9d..1328491d3d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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" )