Fix diffutils build breakage with BR2_STRIP_none=y
authorMarc Gauthier <marc@tensilica.com>
Thu, 28 May 2009 05:41:59 +0000 (22:41 -0700)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 1 Jun 2009 06:34:36 +0000 (08:34 +0200)
Look at BR2_STRIP_none to decide whether to strip diffutils binaries.
This avoids bad quoting in diffutils Makefile.in (generated by automake 1.6)
when STRIP is set to:   true -Not_stripping

Signed-off-by: Marc Gauthier <marc@alumni.uwaterloo.ca>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/diffutils/diffutils.mk

index 1911f912f446a1da47656f0efeffaa717fef138f..82b42c7ffed18427a9e5c93f55d63b604a412da2 100644 (file)
@@ -94,7 +94,8 @@ $(DIFFUTILS_DIR)/$(DIFFUTILS_BINARY): $(DIFFUTILS_DIR)/.configured
        $(MAKE) CC=$(TARGET_CC) -C $(DIFFUTILS_DIR)
 
 $(TARGET_DIR)/$(DIFFUTILS_TARGET_BINARY): $(DIFFUTILS_DIR)/$(DIFFUTILS_BINARY)
-       $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(DIFFUTILS_DIR) install-strip
+       $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(DIFFUTILS_DIR) \
+               $(if $(BR2_STRIP_none),install,install-strip)
 ifneq ($(BR2_HAVE_INFOPAGES),y)
        rm -rf $(TARGET_DIR)/usr/share/info
 endif