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