Changeset 27771


Ignore:
Timestamp:
2011-07-25T12:32:38+02:00 (7 years ago)
Author:
nbd
Message:

only export GCC_HONOUR_COPTS for the built-in toolchain, fixes missing-fhonour-copts warnings with external toolchains

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/kernel.mk

    r27761 r27771  
    1515  LINUX_VERSION?=<LINUX_VERSION> 
    1616else 
    17   export GCC_HONOUR_COPTS=s 
     17  ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),) 
     18    export GCC_HONOUR_COPTS=s 
     19  endif 
    1820 
    1921  LINUX_KMOD_SUFFIX=ko 
  • trunk/rules.mk

    r27403 r27771  
    125125  ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),) 
    126126    -include $(TOOLCHAIN_DIR)/info.mk 
     127    export GCC_HONOUR_COPTS:=0 
    127128    TARGET_CROSS:=$(if $(TARGET_CROSS),$(TARGET_CROSS),$(OPTIMIZE_FOR_CPU)-openwrt-linux$(if $(TARGET_SUFFIX),-$(TARGET_SUFFIX))-) 
    128129    TARGET_CFLAGS+= -fhonour-copts 
     
    161162export PATH:=$(TARGET_PATH) 
    162163export STAGING_DIR 
    163 export GCC_HONOUR_COPTS:=0 
    164164export SH_FUNC:=. $(INCLUDE_DIR)/shell.sh; 
    165165 
Note: See TracChangeset for help on using the changeset viewer.