telepathy-qt: FindQt5.cmake: remove hardcoded -fPIC flag
Alexandr Akulich
kaffeine at kemper.freedesktop.org
Sat Aug 27 06:41:33 UTC 2016
Module: telepathy-qt
Branch: master
Commit: 339467dbb3331facbbbdb94183793282d56cf5aa
URL: http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=339467dbb3331facbbbdb94183793282d56cf5aa
Author: George Kiagiadakis <gkiagia at tolabaki.gr>
Date: Tue Jun 21 15:30:34 2016 +0300
FindQt5.cmake: remove hardcoded -fPIC flag
This was probably needed because the pkgconfig check for QtCore
was failing, so the code in CMakeLists.txt that adds -fPIC and -fPIE
in the flags was never executed.
Currently, -fPIC and -fPIE are added when 'reduce_relocations' is present
in the qt_config flags in Qt5Core.pc
Reviewed-by: Alexandr Akulich <akulichalexander at gmail.com>
---
cmake/modules/FindQt5.cmake | 2 --
1 file changed, 2 deletions(-)
diff --git a/cmake/modules/FindQt5.cmake b/cmake/modules/FindQt5.cmake
index c4db9c5..b9a35e1 100644
--- a/cmake/modules/FindQt5.cmake
+++ b/cmake/modules/FindQt5.cmake
@@ -127,8 +127,6 @@ EXECUTE_PROCESS(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable qt_config Qt5Core
RESULT_VARIABLE _pkgconfig_failed)
STRING(REPLACE " " ";" QT_CONFIG_FLAGS "${_pkgconfig_flags}")
-SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
-
INCLUDE(Qt5Macros)
SET(QT_FOUND TRUE)
More information about the telepathy-commits
mailing list