aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-07-19 16:29:01 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-07-19 16:29:01 +0000
commit58ab325730ff1a341d2b0019a1828603109ba48a (patch)
treeede4b17e6e088b4b4c19d4b618b66623aee54c52
parentf839b9fccfacb7becedb19d5ba9277b205216a30 (diff)
downloadupstream-58ab325730ff1a341d2b0019a1828603109ba48a.tar.gz
upstream-58ab325730ff1a341d2b0019a1828603109ba48a.tar.bz2
upstream-58ab325730ff1a341d2b0019a1828603109ba48a.zip
Native toolchain does not support -fhonour-copts, do not add it to the TARGET_CFLAGS
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11874 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--rules.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/rules.mk b/rules.mk
index 7153a04c2d..5b411183c6 100644
--- a/rules.mk
+++ b/rules.mk
@@ -55,18 +55,19 @@ STAMP_DIR_HOST=$(BUILD_DIR_HOST)/stamp
TARGET_DIR:=$(BUILD_DIR)/root-$(BOARD)
IPKG_STATE_DIR:=$(TARGET_DIR)/usr/lib/ipkg
+TARGET_PATH:=$(TOOLCHAIN_DIR)/bin:$(STAGING_DIR_HOST)/bin:$(STAGING_DIR)/host/bin:$(PATH)
+TARGET_CFLAGS:=$(TARGET_OPTIMIZATION)
+TARGET_CPPFLAGS:=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
+TARGET_LDFLAGS:=-L$(TOOLCHAIN_DIR)/lib -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
+
ifeq ($(CONFIG_NATIVE_TOOLCHAIN),)
-include $(TOOLCHAIN_DIR)/info.mk
REAL_GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux-uclibc$(if $(CONFIG_EABI_SUPPORT),gnueabi)
GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux
TARGET_CROSS:=$(if $(TARGET_CROSS),$(TARGET_CROSS),$(OPTIMIZE_FOR_CPU)-linux-uclibc$(if $(CONFIG_EABI_SUPPORT),gnueabi)-)
+ TARGET_CFLAGS+= -fhonour-copts
endif
-TARGET_PATH:=$(TOOLCHAIN_DIR)/bin:$(STAGING_DIR_HOST)/bin:$(STAGING_DIR)/host/bin:$(PATH)
-TARGET_CFLAGS:=$(TARGET_OPTIMIZATION) -fhonour-copts
-TARGET_CPPFLAGS:=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
-TARGET_LDFLAGS:=-L$(TOOLCHAIN_DIR)/lib -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
-
ifeq ($(CONFIG_SOFT_FLOAT),y)
SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft
TARGET_CFLAGS+=-msoft-float