fa307f
diff -up bzip2-1.0.6/Makefile-libbz2_so.pom bzip2-1.0.6/Makefile-libbz2_so
fa307f
--- bzip2-1.0.6/Makefile-libbz2_so.pom	2010-09-22 10:36:24.000000000 +0200
fa307f
+++ bzip2-1.0.6/Makefile-libbz2_so	2010-09-22 10:36:58.000000000 +0200
fa307f
@@ -35,7 +35,7 @@ OBJS= blocksort.o  \
fa307f
       bzlib.o
fa307f
 
fa307f
 all: $(OBJS)
fa307f
-	$(CC) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.8 $(OBJS)
fa307f
+	$(CC) $(CFLAGS) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.8 $(OBJS)
fa307f
 	$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.8
fa307f
 	rm -f libbz2.so.1.0
fa307f
 	ln -s libbz2.so.1.0.8 libbz2.so.1.0