chiark / gitweb /
do not strip if DEB_BUILD_OPTIONS=nostrip
authorian <ian>
Sun, 23 Sep 2007 19:22:24 +0000 (19:22 +0000)
committerian <ian>
Sun, 23 Sep 2007 19:22:24 +0000 (19:22 +0000)
Makefile
debian/rules

index c034d2fc938a81bdeb78542fc22d779429856fe0..ac988af2b9a2c177d2375150d789b7cb529745cc 100644 (file)
--- 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)
index f967ad31287b5a12cd947dfcb82ed5a44c163111..2e872bcdffec05ae2ef9f432e20259d0b74d655e 100755 (executable)
@@ -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: