[oe-commits] Otavio Salvador : freerdp: workaround gcc linking bug forcing -lpthread

git version control git at git.openembedded.org
Sat Mar 12 20:55:17 UTC 2011


Module: openembedded.git
Branch: master
Commit: 751599197284b031788e482a5b632ac7eda22a02
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=751599197284b031788e482a5b632ac7eda22a02

Author: Otavio Salvador <otavio at ossystems.com.br>
Date:   Mon Feb 28 19:57:24 2011 +0000

freerdp: workaround gcc linking bug forcing -lpthread

Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>

---

 recipes/freerdp/freerdp.inc |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/recipes/freerdp/freerdp.inc b/recipes/freerdp/freerdp.inc
index 0690d6e..10ce13c 100644
--- a/recipes/freerdp/freerdp.inc
+++ b/recipes/freerdp/freerdp.inc
@@ -8,10 +8,15 @@ RDEPENDS_${PN} += "xprop"
 SECTION = "x11/network"
 LICENSE = "Apache-2.0"
 
-INC_PR = "r6"
+INC_PR = "r7"
 
 inherit pkgconfig autotools
 
+do_configure_prepend() {
+	# workaround gcc linking bug
+	find ${S} -name 'Makefile.am' | xargs -n 1 sed 's,-pthread,-lpthread -D_REENTRANT,g' -i
+}
+
 do_install_append() {
 	rm ${D}${libdir}/freerdp/*.a ${D}${libdir}/freerdp/*.la
 }





More information about the Openembedded-commits mailing list