summaryrefslogtreecommitdiff
path: root/packages/zlib/zlib-1.2.3
diff options
context:
space:
mode:
authorRaymond Danks <raymond@edanks.com>2006-07-24 16:25:03 +0000
committerRaymond Danks <raymond@edanks.com>2006-07-24 16:25:03 +0000
commitdb1f477d276d56b30b238187dcbc53b7b1529992 (patch)
treec9ee26ddf98051f70505467a8a8e533f30589d44 /packages/zlib/zlib-1.2.3
parent2d293982e75815160483c14a9f501f82c47162ce (diff)
zlib - Create a libtool package for other libtool builds to link against.
Diffstat (limited to 'packages/zlib/zlib-1.2.3')
-rw-r--r--packages/zlib/zlib-1.2.3/libtool_staging.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/zlib/zlib-1.2.3/libtool_staging.patch b/packages/zlib/zlib-1.2.3/libtool_staging.patch
new file mode 100644
index 0000000000..f52e036108
--- /dev/null
+++ b/packages/zlib/zlib-1.2.3/libtool_staging.patch
@@ -0,0 +1,28 @@
+--- zlib-1.2.3/Makefile.in.sav 2006-06-13 09:09:53.000000000 -0600
++++ zlib-1.2.3/Makefile.in 2006-06-13 09:24:48.861200464 -0600
+@@ -24,11 +24,13 @@
+ #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
+ # -Wstrict-prototypes -Wmissing-prototypes
+
++LIBTOOL=libtool
+ LDFLAGS=libz.a
+ LDSHARED=$(CC)
+ CPP=$(CC) -E
+
+ LIBS=libz.a
++LIBTOOLLIB=libz.la
+ SHAREDLIB=libz.so
+ SHAREDLIBV=libz.so.1.2.3
+ SHAREDLIBM=libz.so.1
+@@ -67,7 +69,10 @@
+ echo ' *** zlib test FAILED ***'; \
+ fi
+
+-libz.a: $(OBJS) $(OBJA)
++$(LIBTOOLLIB): $(OBJS) $(OBJA)
++ $(LIBTOOL) --tag='CC' --mode=link $(CC) -o $@ $(OBJS) $(OBJA)
++
++libz.a: $(OBJS) $(OBJA) $(LIBTOOLLIB)
+ $(AR) $@ $(OBJS) $(OBJA)
+ -@ ($(RANLIB) $@ || true) >/dev/null 2>&1
+