termux-packages/packages/libbz2/shared_library.patch

27 lines
863 B
Diff
Raw Normal View History

2019-07-20 10:52:19 +02:00
diff -uNr bzip2-1.0.8/Makefile-libbz2_so bzip2-1.0.8.mod/Makefile-libbz2_so
--- bzip2-1.0.8/Makefile-libbz2_so 2019-07-13 20:50:05.000000000 +0300
+++ bzip2-1.0.8.mod/Makefile-libbz2_so 2019-07-20 11:51:36.370015038 +0300
@@ -22,9 +22,9 @@
2015-06-13 01:03:31 +02:00
SHELL=/bin/sh
-CC=gcc
2019-07-20 10:52:19 +02:00
+CC ?= gcc
2015-06-13 01:03:31 +02:00
BIGFILES=-D_FILE_OFFSET_BITS=64
-CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES)
2019-07-20 10:52:19 +02:00
+CFLAGS ?= -fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES)
2015-06-13 01:03:31 +02:00
OBJS= blocksort.o \
huffman.o \
2019-07-20 10:52:19 +02:00
@@ -35,8 +35,8 @@
2015-06-13 01:03:31 +02:00
bzlib.o
all: $(OBJS)
2019-07-20 10:52:19 +02:00
- $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.8 $(OBJS)
- $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.8
+ $(CC) $(LDFLAGS) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.8 $(OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.8
2015-06-13 01:03:31 +02:00
rm -f libbz2.so.1.0
2019-07-20 10:52:19 +02:00
ln -s libbz2.so.1.0.8 libbz2.so.1.0
2015-06-13 01:03:31 +02:00