add EXTRA_CFLAGS variable support

SVN-Revision: 6459
lede-17.01
Felix Fietkau 2007-03-02 16:14:05 +00:00
parent 65b4654000
commit f86431a751
1 changed files with 5 additions and 5 deletions

View 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 TARGET_LDFLAGS=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
CONFIGURE_VARS:= \ CONFIGURE_VARS:= \
$(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \ CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
CXXFLAGS="$(TARGET_CFLAGS)" \ CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
CPPFLAGS="$(TARGET_CPPFLAGS)" \ CPPFLAGS="$(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \ PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig" PKG_CONFIG_LIBDIR="$(STAGING_DIR)/usr/lib/pkgconfig"
@ -333,8 +333,8 @@ define Build/Configure
endef endef
MAKE_VARS := \ MAKE_VARS := \
CFLAGS="$(TARGET_CFLAGS)" \ CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
CXXFLAGS="$(TARGET_CFLAGS) " \ CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
LDFLAGS="$(EXTRA_LDFLAGS) " LDFLAGS="$(EXTRA_LDFLAGS) "
MAKE_FLAGS := \ MAKE_FLAGS := \