aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-02-28 13:28:18 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-02-28 13:28:18 +0000
commit96c42dce806b42e947a743453e09dbff20c804d7 (patch)
treecd914aa7a96f6a3892f09698bb21b58e2365e362 /include
parent07b49e249a54285aecdfbc3e5757c499cb20be14 (diff)
downloadupstream-96c42dce806b42e947a743453e09dbff20c804d7.tar.gz
upstream-96c42dce806b42e947a743453e09dbff20c804d7.tar.bz2
upstream-96c42dce806b42e947a743453e09dbff20c804d7.zip
fix kexec-tools build
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6428 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/package.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/package.mk b/include/package.mk
index 95508bc5d8..389ee5b6b0 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -303,12 +303,14 @@ CONFIGURE_ARGS := \
--infodir=/usr/info \
$(DISABLE_NLS)
+TARGET_CPPFLAGS=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
+TARGET_LDFLAGS=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
CONFIGURE_VARS:= \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CXXFLAGS="$(TARGET_CFLAGS)" \
- CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
- LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
+ CPPFLAGS="$(TARGET_CPPFLAGS)" \
+ LDFLAGS="$(TARGET_LDFLAGS)" \
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig"