summaryrefslogtreecommitdiff
blob: d63226684f6674fd9e9f929c3c33afc4980ee538 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- bzip2-1.0.7/Makefile-libbz2_so
+++ bzip2-1.0.7/Makefile-libbz2_so
@@ -35,8 +35,8 @@
       bzlib.o
 
 all: $(OBJS)
-	$(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.7 $(OBJS)
-	$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.7
+	$(CC) $(LDFLAGS) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.7 $(OBJS)
+	$(CC) $(LDFLAGS) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.7
 	rm -f libbz2.so.1.0
 	ln -s libbz2.so.1.0.7 libbz2.so.1.0