Package: src:elmerfem
Version: 5.5.0.svn.4897.dfsg-1
Severity: normal
Tags: patch
User: debian-...@lists.debian.org
Usertags: ld-as-needed

I hope this is the last gold related fix. Ubuntu passes --as-needed to
ld, in preparation for binutils-gold, and this causes a problem with the
order the Python libraries are linked in.

Patch attached.

SR

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Description: Fix failure to build with ld --as-needed, as linking order matters.
Author: Stefano Rivera <stef...@rivera.za.net>
Last-Update: 2011-01-13
--- a/ElmerGUI/Application/Application.pro
+++ b/ElmerGUI/Application/Application.pro
@@ -107,7 +107,7 @@
 contains(DEFINES, EG_PYTHONQT) {
    INCLUDEPATH += $${PY_INCLUDEPATH} ../PythonQt/src
    LIBPATH += $${PY_LIBPATH} ../PythonQt/lib
-   LIBS += $${PY_LIBS} -lPythonQt
+   LIBS += -lPythonQt $${PY_LIBS}
 }
 
 #------------------------------------------------------------------------------

Reply via email to