diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-03-02 16:14:05 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-03-02 16:14:05 +0000 |
commit | f86431a751817784ca6a4a589bab4413b3ea9229 (patch) | |
tree | d17ab86039d4bff15111910b0d588f56d86059b0 /include/package.mk | |
parent | 65b4654000ef64d06a72f87542753ad16dbeb610 (diff) | |
download | upstream-f86431a751817784ca6a4a589bab4413b3ea9229.tar.gz upstream-f86431a751817784ca6a4a589bab4413b3ea9229.tar.bz2 upstream-f86431a751817784ca6a4a589bab4413b3ea9229.zip |
add EXTRA_CFLAGS variable support
SVN-Revision: 6459
Diffstat (limited to 'include/package.mk')
-rw-r--r-- | include/package.mk | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/package.mk b/include/package.mk index 389ee5b6b0..bee893d97d 100644 --- a/include/package.mk +++ b/include/package.mk @@ -307,9 +307,9 @@ 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="$(TARGET_CPPFLAGS)" \ + CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \ + CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \ PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \ PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig" @@ -333,8 +333,8 @@ define Build/Configure endef MAKE_VARS := \ - CFLAGS="$(TARGET_CFLAGS)" \ - CXXFLAGS="$(TARGET_CFLAGS) " \ + CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \ + CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \ LDFLAGS="$(EXTRA_LDFLAGS) " MAKE_FLAGS := \ |