summaryrefslogtreecommitdiff
path: root/system/bzip2/bzip2-1.0.6-saneso.patch
blob: 1968a63bf1e2fead4d4d6a0cfe9bf09349c2591b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- ./Makefile-libbz2_so
+++ ./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.6 $(OBJS)
-	$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.6
+	$(CC) $(LDFLAGS) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.6 $(OBJS)
+	$(CC) $(LDFLAGS) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.6
 	rm -f libbz2.so.1.0
 	ln -s libbz2.so.1.0.6 libbz2.so.1.0