From: ian Date: Sun, 23 Sep 2007 19:22:24 +0000 (+0000) Subject: do not strip if DEB_BUILD_OPTIONS=nostrip X-Git-Tag: debian_version_1_2_0~3 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=dcc16e59c55e436592e2ea2c4b9ab9d705ce5a9c;p=authbind.git do not strip if DEB_BUILD_OPTIONS=nostrip --- diff --git a/Makefile b/Makefile index c034d2f..ac988af 100644 --- a/Makefile +++ b/Makefile @@ -31,9 +31,10 @@ man8_dir=$(man_dir)/man8 etc_dir=/etc/authbind -INSTALL_FILE=install -o root -g root -m 644 -INSTALL_PROGRAM=install -o root -g root -m 755 -s -INSTALL_DIR=install -o root -g root -m 755 -d +INSTALL_FILE ?= install -o root -g root -m 644 +INSTALL_PROGRAM ?= install -o root -g root -m 755 -s +INSTALL_DIR ?= install -o root -g root -m 755 -d +STRIP ?= strip OPTIMISE= -O2 LDFLAGS= -g @@ -63,7 +64,7 @@ install: $(TARGETS) $(INSTALL_DIR) $(lib_dir) $(man1_dir) $(man8_dir) $(INSTALL_PROGRAM) $(BINTARGETS) $(bin_dir)/. $(INSTALL_FILE) $(LIBTARGET) $(lib_dir)/. - strip --strip-unneeded $(lib_dir)/$(LIBTARGET) + $(STRIP) --strip-unneeded $(lib_dir)/$(LIBTARGET) ln -sf $(LIBTARGET) $(lib_dir)/$(LIBCANON) $(INSTALL_PROGRAM) $(HELPER) $(libexec_dir)/. chmod u+s $(libexec_dir)/$(HELPER) diff --git a/debian/rules b/debian/rules index f967ad3..2e872bc 100755 --- a/debian/rules +++ b/debian/rules @@ -44,6 +44,9 @@ LDFLAGS += -g ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s +STRIP=strip +else +STRIP=: endif export CFLAGS @@ -53,6 +56,7 @@ export INSTALL_FILE export INSTALL_PROGRAM export INSTALL_SCRIPT export INSTALL_DIR +export STRIP build: