summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2009-09-15 20:41:52 -0700
committerKhem Raj <raj.khem@gmail.com>2009-09-16 21:07:39 -0700
commitcb86af0943cf0c38f8fd8fba32ed129574e11a97 (patch)
tree3a904ad6a4d0e9b39b7a8e090996bed7c5b2e65b
parentf43c3adb4bfefbc663f89737927a79f79738f66f (diff)
proxy-libintl-20080418: Add the patch to compile as shared library
* Keep generating .a file. Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--recipes/proxy-libintl/proxy-libintl-20080418/create-as-shared-lib.patch31
-rw-r--r--recipes/proxy-libintl/proxy-libintl_20080418.bb4
2 files changed, 33 insertions, 2 deletions
diff --git a/recipes/proxy-libintl/proxy-libintl-20080418/create-as-shared-lib.patch b/recipes/proxy-libintl/proxy-libintl-20080418/create-as-shared-lib.patch
new file mode 100644
index 0000000000..306e3b8212
--- /dev/null
+++ b/recipes/proxy-libintl/proxy-libintl-20080418/create-as-shared-lib.patch
@@ -0,0 +1,31 @@
+--- a/src/proxy-libintl/Makefile.org 2009-09-12 23:19:04.989421607 -0700
++++ a/src/proxy-libintl/Makefile 2009-09-12 23:21:14.100640001 -0700
+@@ -4,20 +4,20 @@ ZIPFILE = proxy-libintl-$(TIMESTAMP).zip
+ CC = gcc
+ CFLAGS = -Wall -I ../../include
+
+-all : ../../lib/libintl.a ../../lib/intl.lib
++all : ../../lib/libintl.so ../../lib/intl.lib
+
+-../../lib/libintl.a : libintl.o
+- ar rc $@ libintl.o
++../../lib/libintl.so : libintl.o
++ $(CC) -shared -o $@ libintl.o
+
+-../../lib/intl.lib : ../../lib/libintl.a
+- cp ../../lib/libintl.a $@
+- strip --strip-unneeded $@
++../../lib/intl.lib : ../../lib/libintl.so
++ cp ../../lib/libintl.so $@
++ $(STRIP) --strip-unneeded $@
+
+ libintl.o : libintl.c
+ $(CC) $(CFLAGS) -c libintl.c
+
+ clean :
+- rm -f *.o ../../lib/libintl.a ../../$(ZIPFILE)
++ rm -f *.o ../../lib/libintl.so ../../$(ZIPFILE)
+
+ dist : clean all
+- cd ../..; zip $(ZIPFILE) include/libintl.h lib/{libintl.a,intl.lib} src/proxy-libintl/{README.txt,COPYING.LIB.txt,Makefile,libintl.[ch]}; manifestify $(ZIPFILE)
++ cd ../..; zip $(ZIPFILE) include/libintl.h lib/{libintl.so,intl.lib} src/proxy-libintl/{README.txt,COPYING.LIB.txt,Makefile,libintl.[ch]}; manifestify $(ZIPFILE)
diff --git a/recipes/proxy-libintl/proxy-libintl_20080418.bb b/recipes/proxy-libintl/proxy-libintl_20080418.bb
index 6c625d6ba0..36a0e5d0aa 100644
--- a/recipes/proxy-libintl/proxy-libintl_20080418.bb
+++ b/recipes/proxy-libintl/proxy-libintl_20080418.bb
@@ -5,7 +5,6 @@ LICENSE = "LGPL"
PR = "r1"
PROVIDES = "virtual/libintl"
-LEAD_SONAME = "libintl.so"
SRC_URI = " \
http://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/${PN}-${PV}.zip \
@@ -15,7 +14,7 @@ SRC_URI = " \
S = "${WORKDIR}"
-FILES_${PN}-dev = "${includedir}"
+FILES_${PN}-dev = "${includedir} ${libdir}/libintl.a"
FILES_${PN} = "${libdir}/libintl.so"
@@ -35,6 +34,7 @@ do_install() {
install -m 0644 ${WORKDIR}/include/libintl.h ${D}/${includedir}
install -m 0644 ${WORKDIR}/lib/libintl.so ${D}/${libdir}
+ install -m 0644 ${WORKDIR}/lib/libintl.a ${D}/${libdir}
}