summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-qt/qwt
diff options
context:
space:
mode:
authorMarc Reilly <marc@cpdesign.com.au>2012-08-21 01:54:26 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2012-08-27 14:42:00 +0200
commit380f8fe34d9d7b50424ec979b94b5a0056e85912 (patch)
tree2ce144bb2b2fc6a2ce09700653330d1a28a6028f /meta-oe/recipes-qt/qwt
parentb4d98cfc53994d71ce404a4534549ff4a9d4e672 (diff)
downloadmeta-openembedded-380f8fe34d9d7b50424ec979b94b5a0056e85912.tar.gz
qwt: fix link error when linking with ld-gold.
ld-gold doesn't implicitly link with librt, this fixes an unresolved symbol error when compiling qwt examples. Signed-off-by: Marc Reilly <marc@cpdesign.com.au> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-qt/qwt')
-rw-r--r--meta-oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch34
-rw-r--r--meta-oe/recipes-qt/qwt/qwt.inc4
2 files changed, 36 insertions, 2 deletions
diff --git a/meta-oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch b/meta-oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch
new file mode 100644
index 000000000..1fdd9cf4b
--- /dev/null
+++ b/meta-oe/recipes-qt/qwt/files/qwt6-fix-linking-with-ld-gold.patch
@@ -0,0 +1,34 @@
1Upstream-Status: Pending
2
3diff -urpN qwt-6.0.1_orig/qwtbuild.pri qwt-6.0.1/qwtbuild.pri
4--- qwt-6.0.1_orig/qwtbuild.pri 2011-08-02 00:33:53.000000000 +1000
5+++ qwt-6.0.1/qwtbuild.pri 2012-08-21 10:27:30.721990849 +1000
6@@ -67,3 +67,13 @@ unix {
7 error( "local build will conflict with $${QMAKE_LIBDIR_QT}/libqwt.*" )
8 }
9 }
10+
11+######################################################################
12+# libs for building qwt
13+######################################################################
14+
15+unix {
16+ # Some linkers require explicit linking with librt (eg ld.gold)
17+ LIBS += -lrt
18+}
19+
20diff -urpN qwt-6.0.1_orig/qwt.prf qwt-6.0.1/qwt.prf
21--- qwt-6.0.1_orig/qwt.prf 2011-08-02 00:33:51.000000000 +1000
22+++ qwt-6.0.1/qwt.prf 2012-08-21 11:19:49.435240439 +1000
23@@ -9,6 +9,11 @@
24
25 include ( ./qwtconfig.pri )
26
27+unix {
28+
29+ LIBS += -lrt
30+}
31+
32 contains(QWT_CONFIG, QwtDll) {
33
34 DEFINES *= QWT_DLL
diff --git a/meta-oe/recipes-qt/qwt/qwt.inc b/meta-oe/recipes-qt/qwt/qwt.inc
index a299ac838..a9289f7c3 100644
--- a/meta-oe/recipes-qt/qwt/qwt.inc
+++ b/meta-oe/recipes-qt/qwt/qwt.inc
@@ -6,8 +6,8 @@ LICENSE = "QWTv1.0"
6LIC_FILES_CHKSUM = "file://COPYING;md5=dac2743472b0462ff3cfb4af42051c88" 6LIC_FILES_CHKSUM = "file://COPYING;md5=dac2743472b0462ff3cfb4af42051c88"
7 7
8SRC_URI = "${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2;name=qwt \ 8SRC_URI = "${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2;name=qwt \
9 file://qwt6.patch \ 9 file://qwt6.patch \
10 " 10 file://qwt6-fix-linking-with-ld-gold.patch"
11 11
12S = "${WORKDIR}/qwt-${PV}" 12S = "${WORKDIR}/qwt-${PV}"
13 13