From patchwork Sun Aug 12 08:50:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [oe-core] qwt: fix link error when linking with ld-gold. Date: Sun, 12 Aug 2012 08:50:52 -0000 From: Marc Reilly X-Patchwork-Id: 34301 Message-Id: <1344761452-10965-1-git-send-email-marc@cpdesign.com.au> To: openembedded-devel@lists.linuxtogo.org ld-gold doesn't implicitly link with librt, this fixes an unresolved symbol error when compiling qwt examples. Signed-off-by: Marc Reilly --- .../recipes-qt/qwt/files/fix-ld-gold-linking.patch | 14 ++++++++++++++ meta-oe/recipes-qt/qwt/qwt.inc | 1 + 2 files changed, 15 insertions(+), 0 deletions(-) create mode 100644 meta-oe/recipes-qt/qwt/files/fix-ld-gold-linking.patch diff --git a/meta-oe/recipes-qt/qwt/files/fix-ld-gold-linking.patch b/meta-oe/recipes-qt/qwt/files/fix-ld-gold-linking.patch new file mode 100644 index 0000000..a00aba4 --- /dev/null +++ b/meta-oe/recipes-qt/qwt/files/fix-ld-gold-linking.patch @@ -0,0 +1,14 @@ +- fix link of unresolved symbols: clock_getres and clock_gettime +--- +diff --git a/src/src.pro b/src/src.pro +index beb7125..ebf8ea6 100644 +--- a/src/src.pro ++++ b/src/src.pro +@@ -94,6 +102,7 @@ SOURCES += \ + qwt_symbol.cpp \ + qwt_system_clock.cpp + ++linux*:LIBS += -lrt + + contains(QWT_CONFIG, QwtPlot) { + diff --git a/meta-oe/recipes-qt/qwt/qwt.inc b/meta-oe/recipes-qt/qwt/qwt.inc index a299ac8..94231b4 100644 --- a/meta-oe/recipes-qt/qwt/qwt.inc +++ b/meta-oe/recipes-qt/qwt/qwt.inc @@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=dac2743472b0462ff3cfb4af42051c88" SRC_URI = "${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2;name=qwt \ file://qwt6.patch \ + file://fix-ld-gold-linking.patch \ " S = "${WORKDIR}/qwt-${PV}"