--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: pythonqt FTBFS on hppa arch
- From: Helge Deller <deller@gmx.de>
- Date: Mon, 2 May 2016 21:06:20 +0200
- Message-id: <5727A52C.2090702@gmx.de>
Package: pythonqt
Version: 3.0-1
Tags: patch
pythonqt fails to build from source on the hppa architecture because
some symbols can't be reached at link stage:
https://buildd.debian.org/status/fetch.php?pkg=pythonqt&arch=hppa&ver=3.0-1&stamp=1462187665
The bug can be avoided on hppa by adding the -"mlong-calls" compiler flag.
The attached patch does that, but is not the real solution because
it will break other architectures.
Is there maybe a better way to add -mlong-calls for hppa arch only?
Thanks,
Helge
diff -up ./pythonqt-3.0/CMakeLists.txt.org ./pythonqt-3.0/CMakeLists.txt
--- ./pythonqt-3.0/CMakeLists.txt.org 2016-05-02 18:01:38.498415244 +0200
+++ ./pythonqt-3.0/CMakeLists.txt 2016-05-02 18:04:49.701064492 +0200
@@ -23,6 +23,9 @@ add_definitions(-DPYTHONQT_USE_RELEASE_P
#-----------------------------------------------------------------------------
# Build options
+# for hppa:
+SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mlong-calls" )
+
option(PythonQt_Wrap_QtAll "Make all Qt components available in python" OFF)
set(qtlibs core gui network opengl sql svg uitools webkit xml xmlpatterns)
--- End Message ---