Only generate -fPIE on unix.
authorStephen Kelly <stephen.kelly@kdab.com>
Fri, 7 Dec 2012 09:15:36 +0000 (10:15 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 7 Dec 2012 13:49:08 +0000 (14:49 +0100)
This follows the same logic used to set bsymbolic_functions.

Change-Id: I9300eab8a1b6673c4409b5dd07b40123fdf00d69
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
mkspecs/features/create_cmake.prf

index 3aec63a..c222ed4 100644 (file)
@@ -58,7 +58,7 @@ contains(CMAKE_DATA_DIR, "$${CMAKE_QT_INSTALL_PREFIX_ESCAPED}.*") {
 
 static|staticlib:CMAKE_STATIC_TYPE = true
 
-contains(QT_CONFIG, reduce_relocations):CMAKE_ADD_FPIE_FLAGS = "true"
+unix:contains(QT_CONFIG, reduce_relocations):CMAKE_ADD_FPIE_FLAGS = "true"
 
 CMAKE_MKSPEC = $$[QMAKE_XSPEC]