python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / bzip2 / patches / soname.patch
blob56d039058c3e981e8dc10cc3758a197beee9bfe2
1 --- Makefile-libbz2_so.orig 2010-09-11 01:07:52.000000000 +0200
2 +++ Makefile-libbz2_so 2013-02-05 14:40:44.940114622 +0100
3 @@ -22,9 +22,9 @@
6 SHELL=/bin/sh
7 -CC=gcc
8 +CC ?= gcc
9 BIGFILES=-D_FILE_OFFSET_BITS=64
10 -CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES)
11 +CFLAGS += -fpic -fPIC -Wall -Winline $(BIGFILES)
13 OBJS= blocksort.o \
14 huffman.o \
15 @@ -35,10 +35,11 @@ OBJS= blocksort.o \
16 bzlib.o
18 all: $(OBJS)
19 - $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.6 $(OBJS)
20 + $(CC) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.6 $(OBJS)
21 $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.6
22 rm -f libbz2.so.1.0
23 ln -s libbz2.so.1.0.6 libbz2.so.1.0
24 + ln -s libbz2.so.1.0.6 libbz2.so.1
26 clean:
27 rm -f $(OBJS) bzip2.o libbz2.so.1.0.6 libbz2.so.1.0 bzip2-shared
28 --- Makefile.orig 2013-02-05 14:41:08.980543085 +0100
29 +++ Makefile 2013-02-05 14:41:34.306940942 +0100
30 @@ -15,13 +15,13 @@
31 SHELL=/bin/sh
33 # To assist in cross-compiling
34 -CC=gcc
35 -AR=ar
36 -RANLIB=ranlib
37 +CC ?= gcc
38 +AR ?= ar
39 +RANLIB ?= ranlib
40 LDFLAGS=
42 BIGFILES=-D_FILE_OFFSET_BITS=64
43 -CFLAGS=-Wall -Winline -O2 -g $(BIGFILES)
44 +CFLAGS += -Wall -Winline -O2 $(BIGFILES)
46 # Where you want it installed when you do 'make install'
47 PREFIX=/usr/local