diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2012-02-07 19:07:49 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-10 19:21:24 +0100 |
commit | 1406659948c226ef663e9dca7728958b9ad5023c (patch) | |
tree | 1394ec72ae33d393584428ef9b1c40de44e844e8 /mkspecs/features | |
parent | 38257651b7e2085ae66c1c67ee9e33e93587b573 (diff) |
Add -fPIE to the Qt5Core_COMPILE_FLAGS with reduce-relocations.
Qt requires this since 482d96a0c5d523ace63f56bda6851926b4469dd0
Change-Id: Iba783e283b17654abf46f11b81cc1641c3ce7d83
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Clinton Stimpson <clinton@elemtech.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'mkspecs/features')
-rw-r--r-- | mkspecs/features/create_cmake.prf | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mkspecs/features/create_cmake.prf b/mkspecs/features/create_cmake.prf index e52e65c06f..fe1fe4c376 100644 --- a/mkspecs/features/create_cmake.prf +++ b/mkspecs/features/create_cmake.prf @@ -31,6 +31,8 @@ CMAKE_RELATIVE_INSTALL_DIR = "../../../" static|staticlib:CMAKE_STATIC_TYPE = true +contains(QT_CONFIG, reduce_relocations):CMAKE_ADD_FPIE_FLAGS = "true" + macx { CONFIG(qt_framework, qt_framework|qt_no_framework) { CMAKE_LIB_FILE_LOCATION_DEBUG = Qt$${CMAKE_MODULE_NAME}$${QT_LIBINFIX}.framework/Qt$${CMAKE_MODULE_NAME}$${QT_LIBINFIX} |