projects
/
debian
/
gzip
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update rsyncable patch, etc
[debian/gzip]
/
debian
/
rules
diff --git
a/debian/rules
b/debian/rules
index eb3b6c347babde32221b5d4dfaa91e8503d74918..83be2e58fa31bb77c72140a1f4b5e641883b90be 100755
(executable)
--- a/
debian/rules
+++ b/
debian/rules
@@
-11,10
+11,13
@@
ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
CONFARGS = --host=$(DEB_HOST_GNU_TYPE)
endif
CONFARGS = --host=$(DEB_HOST_GNU_TYPE)
endif
+CFLAGS = `dpkg-buildflags --get CFLAGS`
+CFLAGS += -Wall
+LDFLAGS = `dpkg-buildflags --get LDFLAGS`
+CPPFLAGS = `dpkg-buildflags --get CPPFLAGS`
+
ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH),amd64)
ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH),amd64)
-CFLAGS=-g -O2 -Wall -DUNALIGNED_OK
-else
-CFLAGS=-g -O2 -Wall
+CFLAGS += -DUNALIGNED_OK
endif
reconf-stamp:
endif
reconf-stamp:
@@
-27,7
+30,7
@@
configure: configure-stamp
configure-stamp: reconf-stamp
dh_testdir
mkdir -p build
configure-stamp: reconf-stamp
dh_testdir
mkdir -p build
- cd build && ../configure \
+ cd build &&
CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
../configure \
--prefix=/usr --bindir=/bin \
--infodir=`pwd`/debian/gzip/usr/share/info \
--mandir=`pwd`/debian/gzip/usr/share/man $(CONFARGS)
--prefix=/usr --bindir=/bin \
--infodir=`pwd`/debian/gzip/usr/share/info \
--mandir=`pwd`/debian/gzip/usr/share/man $(CONFARGS)