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