Changeset 46117


Ignore:
Timestamp:
2015-06-23T16:38:03+02:00 (3 years ago)
Author:
cyrus
Message:

toolchain: add fortify-headers, enable FORTIFY_SOURCE by default

Signed-off-by: Steven Barth <steven@…>

Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/config/Config-build.in

    r46108 r46117  
    252252        choice 
    253253                prompt "Enable buffer-overflows detection (FORTIFY_SOURCE)" 
     254                default PKG_FORTIFY_SOURCE_1 
    254255                help 
    255256                  Enable the _FORTIFY_SOURCE macro which introduces additional 
  • trunk/rules.mk

    r45995 r46117  
    145145    TARGET_CROSS:=$(if $(TARGET_CROSS),$(TARGET_CROSS),$(OPTIMIZE_FOR_CPU)-openwrt-linux$(if $(TARGET_SUFFIX),-$(TARGET_SUFFIX))-) 
    146146    TARGET_CFLAGS+= -fhonour-copts $(if $(CONFIG_GCC_VERSION_4_4)$(CONFIG_GCC_VERSION_4_5),,-Wno-error=unused-but-set-variable) 
    147     TARGET_CPPFLAGS+= -I$(TOOLCHAIN_DIR)/usr/include -I$(TOOLCHAIN_DIR)/include 
     147    TARGET_CPPFLAGS+= -I$(TOOLCHAIN_DIR)/usr/include -I$(TOOLCHAIN_DIR)/include/fortify -I$(TOOLCHAIN_DIR)/include 
    148148    TARGET_LDFLAGS+= -L$(TOOLCHAIN_DIR)/usr/lib -L$(TOOLCHAIN_DIR)/lib 
    149149    TARGET_PATH:=$(TOOLCHAIN_DIR)/bin:$(TARGET_PATH) 
  • trunk/toolchain/Makefile

    r44783 r46117  
    2929 
    3030# subdirectories to descend into 
    31 $(curdir)/builddirs := $(if $(CONFIG_GDB),gdb) $(if $(CONFIG_INSIGHT),insight) $(if $(CONFIG_EXTERNAL_TOOLCHAIN),wrapper,kernel-headers binutils gcc/minimal gcc/initial gcc/final $(LIBC)/headers $(LIBC)) 
     31$(curdir)/builddirs := $(if $(CONFIG_GDB),gdb) $(if $(CONFIG_INSIGHT),insight) $(if $(CONFIG_EXTERNAL_TOOLCHAIN),wrapper,kernel-headers binutils gcc/minimal gcc/initial gcc/final $(LIBC)/headers $(LIBC) fortify-headers) 
    3232ifdef CONFIG_USE_UCLIBC 
    3333  $(curdir)/builddirs += $(LIBC)/utils 
Note: See TracChangeset for help on using the changeset viewer.