aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qt4/recipes-libs/qwt-6.0.1/qwt6-fix-linking-with-ld-gold.patch
blob: 1fdd9cf4b3ae67b6e4c438b0116d005d478c984a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Upstream-Status: Pending

diff -urpN qwt-6.0.1_orig/qwtbuild.pri qwt-6.0.1/qwtbuild.pri
--- qwt-6.0.1_orig/qwtbuild.pri	2011-08-02 00:33:53.000000000 +1000
+++ qwt-6.0.1/qwtbuild.pri	2012-08-21 10:27:30.721990849 +1000
@@ -67,3 +67,13 @@ unix {
         error( "local build will conflict with $${QMAKE_LIBDIR_QT}/libqwt.*" )
     }
 }
+
+######################################################################
+# libs for building qwt
+######################################################################
+
+unix {
+    # Some linkers require explicit linking with librt (eg ld.gold)
+    LIBS += -lrt
+}
+
diff -urpN qwt-6.0.1_orig/qwt.prf qwt-6.0.1/qwt.prf
--- qwt-6.0.1_orig/qwt.prf	2011-08-02 00:33:51.000000000 +1000
+++ qwt-6.0.1/qwt.prf	2012-08-21 11:19:49.435240439 +1000
@@ -9,6 +9,11 @@
 
 include ( ./qwtconfig.pri )
 
+unix {
+
+	LIBS += -lrt
+}
+
 contains(QWT_CONFIG, QwtDll) {
 
     DEFINES *= QWT_DLL