Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37918907
en ru br
ALT Linux repos
S:0.9.8-alt3

Group :: System/Libraries
RPM: telepathy-qt5

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 0002-FindQt5.cmake-remove-hardcoded-fPIC-flag.patch
Download


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
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin