move TARGET_* flags from ./include/package-default.mk to ./rules.mk, remove EXTRA_* flags but still use them in configure and make
SVN-Revision: 8592
This commit is contained in:
6
rules.mk
6
rules.mk
@@ -56,6 +56,8 @@ endif
|
||||
|
||||
TARGET_PATH:=$(TOOLCHAIN_DIR)/bin:$(STAGING_DIR_HOST)/bin:$(STAGING_DIR)/usr/bin:$(PATH)
|
||||
TARGET_CFLAGS:=$(TARGET_OPTIMIZATION) -fhonour-copts
|
||||
TARGET_CPPFLAGS:=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
|
||||
TARGET_LDFLAGS:=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
|
||||
|
||||
export PATH:=$(TARGET_PATH)
|
||||
|
||||
@@ -82,10 +84,6 @@ ifneq ($(CONFIG_CCACHE),)
|
||||
TARGET_CC:= ccache $(TARGET_CC)
|
||||
endif
|
||||
|
||||
EXTRA_CPPFLAGS := -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
|
||||
EXTRA_CFLAGS := $(EXTRA_CPPFLAGS)
|
||||
EXTRA_LDFLAGS := -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
|
||||
|
||||
TARGET_CONFIGURE_OPTS:= \
|
||||
AR=$(TARGET_CROSS)ar \
|
||||
AS="$(TARGET_CC) -c $(TARGET_CFLAGS)" \
|
||||
|
||||
Reference in New Issue
Block a user