Native toolchain does not support -fhonour-copts, do not add it to the TARGET_CFLAGS
SVN-Revision: 11874
This commit is contained in:
parent
5b0bd7eb42
commit
958c4eac47
1 changed files with 6 additions and 5 deletions
11
rules.mk
11
rules.mk
|
@ -55,18 +55,19 @@ STAMP_DIR_HOST=$(BUILD_DIR_HOST)/stamp
|
||||||
TARGET_DIR:=$(BUILD_DIR)/root-$(BOARD)
|
TARGET_DIR:=$(BUILD_DIR)/root-$(BOARD)
|
||||||
IPKG_STATE_DIR:=$(TARGET_DIR)/usr/lib/ipkg
|
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),)
|
ifeq ($(CONFIG_NATIVE_TOOLCHAIN),)
|
||||||
-include $(TOOLCHAIN_DIR)/info.mk
|
-include $(TOOLCHAIN_DIR)/info.mk
|
||||||
REAL_GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux-uclibc$(if $(CONFIG_EABI_SUPPORT),gnueabi)
|
REAL_GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux-uclibc$(if $(CONFIG_EABI_SUPPORT),gnueabi)
|
||||||
GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux
|
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_CROSS:=$(if $(TARGET_CROSS),$(TARGET_CROSS),$(OPTIMIZE_FOR_CPU)-linux-uclibc$(if $(CONFIG_EABI_SUPPORT),gnueabi)-)
|
||||||
|
TARGET_CFLAGS+= -fhonour-copts
|
||||||
endif
|
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)
|
ifeq ($(CONFIG_SOFT_FLOAT),y)
|
||||||
SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft
|
SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft
|
||||||
TARGET_CFLAGS+=-msoft-float
|
TARGET_CFLAGS+=-msoft-float
|
||||||
|
|
Loading…
Reference in a new issue