chiark
/
gitweb
/
~ian
/
authbind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix FTCBFS: Use triplet-prefixed build tools. Patch from Helmut Grohne. Closes:...
[authbind.git]
/
debian
/
rules
diff --git
a/debian/rules
b/debian/rules
index c0c4482818a44cc1d158d41ad58712ddd8eae422..625f4b1ca217349d11466f71932d635e8e5529b7 100755
(executable)
--- a/
debian/rules
+++ b/
debian/rules
@@
-20,7
+20,13
@@
#
# $Id$
#
# $Id$
-CC= gcc
+-include /usr/share/dpkg/architecture.mk
+ifneq ($(DEB_HOST_GNU_TYPE),)
+TOOL_PREFIX=$(DEB_HOST_GNU_TYPE)-
+endif
+ifeq ($(origin CC),default)
+CC=$(TOOL_PREFIX)gcc
+endif
SHELL=/bin/bash
package=authbind
SHELL=/bin/bash
package=authbind
@@
-45,8
+51,8
@@
CFLAGS += -g
LDFLAGS += -g
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
LDFLAGS += -g
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-INSTALL_PROGRAM += -s
-STRIP=strip
+STRIP=$(TOOL_PREFIX)strip
+INSTALL_PROGRAM += -s --strip-program=$(STRIP)
else
STRIP=:
endif
else
STRIP=:
endif
@@
-62,7
+68,7
@@
export STRIP
build:
build:
- $(MAKE) prefix=/usr
+ $(MAKE) prefix=/usr
CC='$(CC)' LD='$(TOOL_PREFIX)ld'
clean:
$(MAKE) distclean
clean:
$(MAKE) distclean