I don't actually understand why this works. I fixed it slightly differently by explicitly setting $STRIP.
If just setting $CROSS is enough to fix this, how many other things can be fixed by setting $CROSS? What exactly is the scope of this - does it only work in binutils or does it have wider application? I tried reading the autconf manula and it didn't seem to say anything about this. How is setting $CROSS different from setting --host?
Is there any reason to prefer one of these fixes over the other? Marcin's is shorter, mine is a bit clearer?
Is cross-auto-foo best practice actually written down anywhere?
I don't actually understand why this works. I fixed it slightly differently by explicitly setting $STRIP.
If just setting $CROSS is enough to fix this, how many other things can be fixed by setting $CROSS? What exactly is the scope of this - does it only work in binutils or does it have wider application? I tried reading the autconf manula and it didn't seem to say anything about this. How is setting $CROSS different from setting --host?
Is there any reason to prefer one of these fixes over the other? Marcin's is shorter, mine is a bit clearer?
Is cross-auto-foo best practice actually written down anywhere?
diff -ur origs/debianuti ls-4.2. 2/debian/ rules patched/ debianutils- 4.2.2/debian/ rules ls-4.2. 2/debian/ rules 2012-03-24 14:52:38.000000000 +0000 debianutils- 4.2.2/debian/ rules 2012-03-27 11:46:21.000000000 +0000 ARCH_OS) GNU_TYPE) GNU_TYPE) BUILD_GNU_ TYPE),$ (DEB_HOST_ GNU_TYPE) ) $(DEB_HOST_ GNU_TYPE) $(DEB_HOST_ GNU_TYPE) -strip
--- origs/debianuti
+++ patched/
@@ -12,8 +12,12 @@
DEB_BUILD_ARCH_OS ?= $(shell dpkg-architecture -qDEB_BUILD_
DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_
DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_
+
+STRIP=strip
+
ifneq ($(DEB_
CONFARGS = --host=
+STRIP=
endif
CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
debian/ tmp/bin/
@@ -63,7 +67,7 @@
ifeq (,$(findstring nostrip, $(DEB_BUILD_ OPTIONS) )) section= .comment --remove- section= .note \ section= .comment --remove- section= .note \
debian/ tmp/bin/ run-parts \
debian/ tmp/bin/ tempfile \
debian/ tmp/usr/ bin/ischroot
- strip --remove-
+ $(STRIP) --remove-