[oe-commits] Graeme Gregory : proxy-libintl_20080418.bb : add an SONAME to library

git version control git at git.openembedded.org
Fri Oct 30 10:56:59 UTC 2009


Module: openembedded.git
Branch: shr/merge
Commit: b51c85efe8a2645914fd2a661b0a9ac0d390145c
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=b51c85efe8a2645914fd2a661b0a9ac0d390145c

Author: Graeme Gregory <dp at xora.org.uk>
Date:   Thu Oct 29 18:40:17 2009 +0000

proxy-libintl_20080418.bb : add an SONAME to library

Found in Ångström build. libintl.so built from this recipe was not getting
an soname so the automatic shlibs code was failing making packages that
should depend on this not. Ultimately leading to failing images.

---

 .../proxy-libintl-20080418/soname.patch            |   13 +++++++++++++
 recipes/proxy-libintl/proxy-libintl_20080418.bb    |    3 ++-
 2 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/recipes/proxy-libintl/proxy-libintl-20080418/soname.patch b/recipes/proxy-libintl/proxy-libintl-20080418/soname.patch
new file mode 100644
index 0000000..d2e8064
--- /dev/null
+++ b/recipes/proxy-libintl/proxy-libintl-20080418/soname.patch
@@ -0,0 +1,13 @@
+Index: proxy-libintl-20080418-r1/src/proxy-libintl/Makefile
+===================================================================
+--- proxy-libintl-20080418-r1.orig/src/proxy-libintl/Makefile
++++ proxy-libintl-20080418-r1/src/proxy-libintl/Makefile
+@@ -7,7 +7,7 @@ CFLAGS = -Wall -I ../../include
+ all : ../../lib/libintl.so ../../lib/intl.lib
+ 
+ ../../lib/libintl.so : libintl.o
+-	$(CC) -shared -o $@ libintl.o
++	$(CC) -shared -Wl,-soname -Wl,libintl.so -o $@ libintl.o
+ 
+ ../../lib/intl.lib : ../../lib/libintl.so
+ 	cp ../../lib/libintl.so $@
diff --git a/recipes/proxy-libintl/proxy-libintl_20080418.bb b/recipes/proxy-libintl/proxy-libintl_20080418.bb
index 74ecfaf..6b91f53 100644
--- a/recipes/proxy-libintl/proxy-libintl_20080418.bb
+++ b/recipes/proxy-libintl/proxy-libintl_20080418.bb
@@ -3,13 +3,14 @@ HOMEPAGE = "http://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/"
 SECTION = "libs"
 LICENSE = "LGPL"
 
-PR = "r1"
+PR = "r2"
 PROVIDES = "virtual/libintl"
 
 SRC_URI = " \
     http://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/${PN}-${PV}.zip \
     file://stub-only.patch;patch=1 \
     file://create-as-shared-lib.patch;patch=1 \
+    file://soname.patch;patch=1 \
 "
 
 S = "${WORKDIR}"





More information about the Openembedded-commits mailing list