aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-07-19 14:59:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-07-19 14:59:09 +0000
commit53ee16adf45245f25d2f2c4a08478a7a8b3464a5 (patch)
treede25e65996622f4cdabd1cf0f97727c0e7f44675 /package
parenta72f794b9271e89db794fa768ae2e2279d1e91de (diff)
downloadmaster-187ad058-53ee16adf45245f25d2f2c4a08478a7a8b3464a5.tar.gz
master-187ad058-53ee16adf45245f25d2f2c4a08478a7a8b3464a5.tar.bz2
master-187ad058-53ee16adf45245f25d2f2c4a08478a7a8b3464a5.zip
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 <larry@elder-gods.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46422 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/devel/strace/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/devel/strace/Makefile b/package/devel/strace/Makefile
index eb80791b26..b9ed201bba 100644
--- a/package/devel/strace/Makefile
+++ b/package/devel/strace/Makefile
@@ -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