[oe-commits] Chris Larson : readline-5.2: fix for darwin builds

git version control git at git.openembedded.org
Fri Oct 22 02:41:03 UTC 2010


Module: openembedded.git
Branch: darwin
Commit: 77fe96f7c0e16ed376c9e432e212258e81f5c61f
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=77fe96f7c0e16ed376c9e432e212258e81f5c61f

Author: Chris Larson <chris_larson at mentor.com>
Date:   Wed Oct 20 13:21:21 2010 -0700

readline-5.2: fix for darwin builds

Signed-off-by: Chris Larson <chris_larson at mentor.com>

---

 recipes/readline/darwin.patch    |   20 ++++++++++++++++++++
 recipes/readline/readline_5.2.bb |    5 ++---
 2 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/recipes/readline/darwin.patch b/recipes/readline/darwin.patch
new file mode 100644
index 0000000..7085a9d
--- /dev/null
+++ b/recipes/readline/darwin.patch
@@ -0,0 +1,20 @@
+--- readline/support/shobj-conf.old	2010-10-20 12:01:58.000000000 -0700
++++ readline/support/shobj-conf	2010-10-20 12:02:36.000000000 -0700
+@@ -142,7 +142,7 @@
+	;;
+
+ # Darwin/MacOS X
+-darwin8*)
++darwin|darwin[89]*)
+	SHOBJ_STATUS=supported
+	SHLIB_STATUS=supported
+
+@@ -171,7 +171,7 @@
+	SHLIB_LIBSUFF='dylib'
+
+	case "${host_os}" in
+-	darwin[78]*)	SHOBJ_LDFLAGS=''
++	darwin|darwin[789]*)	SHOBJ_LDFLAGS=''
+			SHLIB_XLDFLAGS='-dynamiclib -arch_only `/usr/bin/arch` -install_name $(libdir)/$@ -current_version $(SHLIB_MAJOR)$(SHLIB_MINOR) -compatibility_version $(SHLIB_MAJOR) -v'
+			;;
+	*)		SHOBJ_LDFLAGS='-dynamic'
diff --git a/recipes/readline/readline_5.2.bb b/recipes/readline/readline_5.2.bb
index aadb619..cdfa7ce 100644
--- a/recipes/readline/readline_5.2.bb
+++ b/recipes/readline/readline_5.2.bb
@@ -8,15 +8,15 @@ LICENSE = "GPLv2"
 DEPENDS += "ncurses"
 RPROVIDES_${PN} += "readline"
 LEAD_SONAME = "libreadline.so"
-PR = "r7"
+PR = "r8"
 
 SRC_URI = "\
   ftp://ftp.gnu.org/gnu/readline/readline-${PV}.tar.gz \
   file://fix-includes.patch \
   file://configure_fix.patch \
+  file://darwin.patch \
   file://acinclude.m4 \
 "
-S = "${WORKDIR}/readline-${PV}"
 
 inherit autotools
 
@@ -34,6 +34,5 @@ do_install () {
 NATIVE_INSTALL_WORKS = 1
 BBCLASSEXTEND = "native"
 
-
 SRC_URI[md5sum] = "e39331f32ad14009b9ff49cc10c5e751"
 SRC_URI[sha256sum] = "12e88d96aee2cd1192500356f0535540db499282ca7f76339fb4228c31249f45"





More information about the Openembedded-commits mailing list