21 lines
647 B
Diff
21 lines
647 B
Diff
--- bzip2-1.0.6.old/Makefile-libbz2_so
|
|
+++ bzip2-1.0.6/Makefile-libbz2_so
|
|
@@ -25,6 +25,7 @@
|
|
CC=gcc
|
|
BIGFILES=-D_FILE_OFFSET_BITS=64
|
|
CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES)
|
|
+LDFLAGS=
|
|
|
|
OBJS= blocksort.o \
|
|
huffman.o \
|
|
@@ -35,8 +36,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) $(CFLAGS) -shared $(LDFLAGS) -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.6 $(OBJS)
|
|
+ $(CC) $(CFLAGS) $(LDFLAGS) -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
|
|
|