Группа :: Система/Библиотеки
Пакет: telepathy-qt5
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: 0002-FindQt5.cmake-remove-hardcoded-fPIC-flag.patch
Скачать
Скачать
From 339467dbb3331facbbbdb94183793282d56cf5aa Mon Sep 17 00:00:00 2001
From: George Kiagiadakis <gkiagia@tolabaki.gr>
Date: Tue, 21 Jun 2016 15:30:34 +0300
Subject: [PATCH 2/4] 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@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)
--
1.9.3