diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-07-29 09:38:29 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-07-29 09:38:29 +0000 |
commit | 73c4d73d6d3ba54ac0089f2619a6305277f4889d (patch) | |
tree | ffbefec790340b32787547167a277fce48496ec5 /rules.mk | |
parent | 80dd55228e0624348588bf86154d6ce2e7645b57 (diff) | |
download | upstream-73c4d73d6d3ba54ac0089f2619a6305277f4889d.tar.gz upstream-73c4d73d6d3ba54ac0089f2619a6305277f4889d.tar.bz2 upstream-73c4d73d6d3ba54ac0089f2619a6305277f4889d.zip |
build: unify target independent optimization options
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37600
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -38,6 +38,7 @@ ARCH:=$(subst i486,i386,$(subst i586,i386,$(subst i686,i386,$(call qstrip,$(CONF ARCH_PACKAGES:=$(call qstrip,$(CONFIG_TARGET_ARCH_PACKAGES)) BOARD:=$(call qstrip,$(CONFIG_TARGET_BOARD)) TARGET_OPTIMIZATION:=$(call qstrip,$(CONFIG_TARGET_OPTIMIZATION)) +export EXTRA_OPTIMIZATION:=$(call qstrip,$(CONFIG_EXTRA_OPTIMIZATION)) TARGET_SUFFIX=$(call qstrip,$(CONFIG_TARGET_SUFFIX)) BUILD_SUFFIX:=$(call qstrip,$(CONFIG_BUILD_SUFFIX)) SUBDIR:=$(patsubst $(TOPDIR)/%,%,${CURDIR}) @@ -127,7 +128,7 @@ BUILD_LOG_DIR:=$(TOPDIR)/logs PKG_INFO_DIR := $(STAGING_DIR)/pkginfo TARGET_PATH:=$(STAGING_DIR_HOST)/bin:$(subst $(space),:,$(filter-out .,$(filter-out ./,$(subst :,$(space),$(PATH))))) -TARGET_CFLAGS:=$(TARGET_OPTIMIZATION)$(if $(CONFIG_DEBUG), -g3) +TARGET_CFLAGS:=$(TARGET_OPTIMIZATION)$(if $(CONFIG_DEBUG), -g3) $(EXTRA_OPTIMIZATION) TARGET_CXXFLAGS = $(TARGET_CFLAGS) TARGET_ASFLAGS = $(TARGET_CFLAGS) $(TARGET_ASFLAGS_OVERRIDE) TARGET_CPPFLAGS:=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include |