1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Index: bzip2-1.0.6/Makefile
===================================================================
--- bzip2-1.0.6.orig/Makefile 2012-07-01 15:05:07.000000000 +0200
+++ bzip2-1.0.6/Makefile 2012-07-01 15:08:45.586377822 +0200
@@ -20,10 +20,10 @@
CC=gcc
AR=ar
RANLIB=ranlib
-LDFLAGS=
+LDFLAGS= `dpkg-buildflags --get LDFLAGS`
BIGFILES=-D_FILE_OFFSET_BITS=64
-CFLAGS=-Wall -Winline -O2 -g $(BIGFILES) $(DEBCFLAGS)
+CFLAGS=-Wall -Winline $(BIGFILES) $(DEBCFLAGS)
# Where you want it installed when you do 'make install'
PREFIX=/usr/local
@@ -61,7 +61,7 @@
ln -sf $^ $@
libbz2.so.$(sominor): $(OBJS:%.o=%.sho)
- $(CC) -o libbz2.so.$(sominor) -shared \
+ $(CC) $(LDFLAGS) -o libbz2.so.$(sominor) -shared \
-Wl,-soname,libbz2.so.$(somajor) $^ -lc
%.sho: %.c
|