strace: cross compile fix: pass HOST_*FLAGS in to ./configure
authorFelix Fietkau <nbd@openwrt.org>
Sun, 19 Jul 2015 14:59:09 +0000 (14:59 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 19 Jul 2015 14:59:09 +0000 (14:59 +0000)
The HOST_*FLAGS are for compiling programs which will run on the machine that is
running the build.  Setting these flags is frequently required for unusual
cross-compiles.

Signed-off-by: Lawrence D'Anna <larry@elder-gods.org>
SVN-Revision: 46422

package/devel/strace/Makefile

index eb80791b2686fee82327895243d05a7cac412a0a..b9ed201bbaf030eed4ee181f4ff09efbc1897c05 100644 (file)
@@ -27,6 +27,12 @@ PKG_INSTALL:=1
 
 include $(INCLUDE_DIR)/package.mk
 
+CONFIGURE_VARS+= \
+       LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)" \
+       CPPFLAGS_FOR_BUILD="$(HOST_CPPFLAGS)" \
+       CFLAGS_FOR_BUILD="$(HOST_CFLAGS)" \
+       CC_FOR_BUILD="$(HOST_CC)"
+
 define Package/strace
   SECTION:=utils
   CATEGORY:=Utilities