Blame SOURCES/bzip2-ldflags.patch

fa307f
diff -up bzip2-1.0.6/Makefile.jx bzip2-1.0.6/Makefile
fa307f
--- bzip2-1.0.6/Makefile.jx	2010-09-10 18:46:02.000000000 -0400
fa307f
+++ bzip2-1.0.6/Makefile	2015-08-14 13:04:33.891504131 -0400
fa307f
@@ -18,10 +18,6 @@ SHELL=/bin/sh
fa307f
 CC=gcc
fa307f
 AR=ar
fa307f
 RANLIB=ranlib
fa307f
-LDFLAGS=
fa307f
-
fa307f
-BIGFILES=-D_FILE_OFFSET_BITS=64
fa307f
-CFLAGS=-Wall -Winline -O2 -g $(BIGFILES)
fa307f
 
fa307f
 # Where you want it installed when you do 'make install'
fa307f
 PREFIX=/usr/local
fa307f
diff -up bzip2-1.0.6/Makefile-libbz2_so.jx bzip2-1.0.6/Makefile-libbz2_so
fa307f
--- bzip2-1.0.6/Makefile-libbz2_so.jx	2015-08-14 13:04:33.885503955 -0400
fa307f
+++ bzip2-1.0.6/Makefile-libbz2_so	2015-08-14 13:06:52.554581179 -0400
fa307f
@@ -24,7 +24,6 @@
fa307f
 SHELL=/bin/sh
fa307f
 CC=gcc
fa307f
 BIGFILES=-D_FILE_OFFSET_BITS=64
fa307f
-CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES)
fa307f
 
fa307f
 OBJS= blocksort.o  \
fa307f
       huffman.o    \
fa307f
@@ -35,8 +34,8 @@ OBJS= blocksort.o  \
fa307f
       bzlib.o
fa307f
 
fa307f
 all: $(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
+	$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.8 $(OBJS)
fa307f
+	$(CC) $(CFLAGS) $(LDFLAGS) -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
fa307f