add EXTRA_CFLAGS variable support
authorFelix Fietkau <nbd@openwrt.org>
Fri, 2 Mar 2007 16:14:05 +0000 (16:14 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 2 Mar 2007 16:14:05 +0000 (16:14 +0000)
SVN-Revision: 6459

include/package.mk

index 389ee5b6b0197da18f288fe585e862224e322b3b..bee893d97dcb840440d40feed30ea7c6dc99948e 100644 (file)
@@ -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 := \