A good bzip2 package which includes a shared library (needed for bzip2

support in PHP).
Needed at small patch to link the DSO since Solaris ld is too braindead
to understand -soname.
This commit is contained in:
Tom G. Christensen
2004-01-09 09:49:01 +00:00
committed by tgc
parent bd03d96c0d
commit daf949f6f4
3 changed files with 140 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
--- bzip2-1.0.2/Makefile-libbz2_so.orig 2004-01-09 10:17:44.310014000 +0100
+++ bzip2-1.0.2/Makefile-libbz2_so 2004-01-09 10:17:57.600005000 +0100
@@ -20,7 +20,7 @@
bzlib.o
all: $(OBJS)
- $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.2 $(OBJS)
+ $(CC) -shared -Wl,-h -Wl,libbz2.so.1.0 -o libbz2.so.1.0.2 $(OBJS)
$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.2
rm -f libbz2.so.1.0
ln -s libbz2.so.1.0.2 libbz2.so.1.0