summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-01-21 02:14:50 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-01-21 02:14:50 +0000
commitbbe1e39616ea9682e2bff423a994f386fca0e617 (patch)
tree3f88e11967b39bce0c74ab7e8d541a2325fec523 /package
parent7082dce3c68d7ced81caccd694a6a4edf1587c32 (diff)
pass the CFLAGS through the environment on compile and fix a few packages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6154 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/isakmpd/Makefile10
-rw-r--r--package/keynote/Makefile6
-rw-r--r--package/linux-atm/Makefile7
-rw-r--r--package/util-linux/Makefile1
4 files changed, 12 insertions, 12 deletions
diff --git a/package/isakmpd/Makefile b/package/isakmpd/Makefile
index 628b97fd9..d7220522a 100644
--- a/package/isakmpd/Makefile
+++ b/package/isakmpd/Makefile
@@ -32,11 +32,13 @@ define Package/isakmpd
endef
define Build/Compile
- $(call Build/Compile/Default, \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ $(TARGET_CONFIGURE_OPTS) \
LINUX_DIR="$(LINUX_DIR)" \
- EXTRA_CPPFLAGS="-I$(STAGING_DIR)/usr/include/openssl -I$(STAGING_DIR)/usr/include/keynote -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
- EXTRA_LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
- )
+ EXTRA_CPPFLAGS="-I$(STAGING_DIR)/usr/include/openssl -I$(STAGING_DIR)/usr/include/keynote -I$(STAGING_DIR)/usr/include " \
+ EXTRA_LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib"
+
$(MAKE) -C $(PKG_BUILD_DIR) \
STAGING_DIR="$(STAGING_DIR)" \
DESTDIR="$(PKG_INSTALL_DIR)" \
diff --git a/package/keynote/Makefile b/package/keynote/Makefile
index 579300407..ed4d4f020 100644
--- a/package/keynote/Makefile
+++ b/package/keynote/Makefile
@@ -42,11 +42,7 @@ define Build/Configure
)
endef
-define Build/Compile
- $(call Build/Compile/Default, \
- CFLAGS="\$$$$(EXTRA_CFLAGS) \$$$$(EXTRA_LDFLAGS)" \
- )
-endef
+EXTRA_CFLAGS += $(EXTRA_LDFLAGS)
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/include
diff --git a/package/linux-atm/Makefile b/package/linux-atm/Makefile
index 9aae0a0b0..7691c1149 100644
--- a/package/linux-atm/Makefile
+++ b/package/linux-atm/Makefile
@@ -51,11 +51,12 @@ define Build/Configure
touch $(PKG_BUILD_DIR)/stamp-h.in
endef
+TARGET_CFLAGS := -I$(PKG_BUILD_DIR)/src/include $(TARGET_CFLAGS)
define Build/Compile
- $(call Build/Compile/Default, \
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ $(TARGET_CONFIGURE_OPTS) \
DESTDIR="$(PKG_INSTALL_DIR)" \
- all install \
- )
+ all install
endef
define Build/InstallDev
diff --git a/package/util-linux/Makefile b/package/util-linux/Makefile
index e265edb14..ecabbc06f 100644
--- a/package/util-linux/Makefile
+++ b/package/util-linux/Makefile
@@ -56,6 +56,7 @@ define Package/swap-utils
- swapoff
endef
+TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib
define Build/Compile
$(call Build/Compile/Default, \
OPT="$(TARGET_CFLAGS)" \