Author: nbd
Date: 2015-07-19 16:59:09 +0200 (Sun, 19 Jul 2015)
New Revision: 46422

Modified:
   trunk/package/devel/strace/Makefile
Log:
strace: cross compile fix: pass HOST_*FLAGS in to ./configure

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 <[email protected]>

Modified: trunk/package/devel/strace/Makefile
===================================================================
--- trunk/package/devel/strace/Makefile 2015-07-18 23:14:19 UTC (rev 46421)
+++ trunk/package/devel/strace/Makefile 2015-07-19 14:59:09 UTC (rev 46422)
@@ -27,6 +27,12 @@
 
 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
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to