Package: goldencheetah Version: 2.0.0-3 Severity: normal Tags: patch User: [email protected] Usertags: ld-as-needed
The package fails to build when --as-needed linker option is enabled, because of incorrect order of parameters passed to ld. Here's a log of failed build in Ubuntu: https://launchpadlibrarian.net/72631315/buildlog_ubuntu-oneiric-i386.goldencheetah_2.0.0-3_FAILEDTOBUILD.txt.gz See also http://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries The attached patch was used in Ubuntu to fix the problem. https://launchpad.net/ubuntu/+source/goldencheetah/2.0.0-3ubuntu1 -- System Information: Debian Release: wheezy/sid APT prefers oneiric APT policy: (500, 'oneiric') Architecture: i386 (i686) Kernel: Linux 2.6.38-10-generic (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash
Description: During linking, place -lnss3 after liboauth.a, which needs libnss3. Author: Ilya Barygin <[email protected]> --- goldencheetah-2.0.0.orig/src/gcconfig.pri +++ goldencheetah-2.0.0/src/gcconfig.pri @@ -14,7 +14,6 @@ LIBOAUTH_INSTALL = /usr LIBCRYPTO_INSTALL = -lgcrypt LIBCURL_INSTALL=-lcurl -LIBS += -lnss3 LIBZ_INSTALL=-lz # If you want 3D plotting, you need to install qwtplot3d --- goldencheetah-2.0.0.orig/src/src.pro +++ goldencheetah-2.0.0/src/src.pro @@ -21,6 +21,7 @@ DEFINES += GC_HAVE_LIBOAUTH SOURCES += TwitterDialog.cpp HEADERS += TwitterDialog.h } +LIBS += -lnss3 !isEmpty( D2XX_INCLUDE ) { INCLUDEPATH += $${D2XX_INCLUDE}

