]> rtime.felk.cvut.cz Git - sojka/sterm.git/commitdiff
debian: Do not strip binaries during install
authorMichal Sojka <michal.sojka@cvut.cz>
Fri, 4 May 2018 21:55:30 +0000 (23:55 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Fri, 4 May 2018 22:00:33 +0000 (00:00 +0200)
This was broken by one of the previous commits. The problem with
"install -s" is that it breaks when crossbuilding the package and it also
prevents creation of dbgsym package.

Makefile
debian/rules

index f7d0b4dd1881bcad927e7cc340492dfe7f7c3b1f..ab60ba22ddf8d4645a4e122b0abfa66a3b5fd082 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@ endif
 
 PREFIX ?= /usr/local
 INSTALL ?= install
+INSTALL_BIN ?= install -s
 
 all: sterm
 
@@ -14,7 +15,7 @@ clean:
 
 install: all
        $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin
-       $(INSTALL) -s -m 755 sterm $(DESTDIR)$(PREFIX)/bin
+       $(INSTALL_BIN) -m 755 sterm $(DESTDIR)$(PREFIX)/bin
 ifneq ($(NO_MAN),1)
        $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/man/man1
        $(INSTALL) -m 644 sterm.man $(DESTDIR)$(PREFIX)/share/man/man1/sterm.1
index 3fde8d78a112349e424a007e9f75fd0bc3fe9322..c271a3ec47fb1c572c1125f616cd7ab0a8591430 100755 (executable)
@@ -19,7 +19,8 @@ include /usr/share/dpkg/default.mk
 # Variables to pass to sterm Makefile
 export PREFIX=/usr
 export NO_MAN=1
-export INSTALL=install # Do not strip - this will be handled by dh_strip
+# Do not strip - this will be handled by dh_strip
+export INSTALL_BIN=install
 
 # main packaging script based on dh7 syntax
 %: