summaryrefslogtreecommitdiff
path: root/recipes/proxy-libintl/proxy-libintl-20080418
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 /recipes/proxy-libintl/proxy-libintl-20080418
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>
Diffstat (limited to 'recipes/proxy-libintl/proxy-libintl-20080418')
-rw-r--r--recipes/proxy-libintl/proxy-libintl-20080418/create-as-shared-lib.patch31
1 files changed, 31 insertions, 0 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)