Changeset 42282


Ignore:
Timestamp:
2014-08-25T08:36:06+02:00 (3 years ago)
Author:
blogic
Message:

PKG_CHECK_FORMAT_SECURITY: add a menuconfig option, disable by default

The idea is still to enable it by default at some point
I've tested all ar71xx packages (except oldpackages) using CONFIG_ALL=y
Failing packages have been marked with PKG_CHECK_FORMAT_SECURITY:=0 for now
I can test more targets but i have no idea which are the most used

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@…>

Location:
trunk
Files:
2 edited

Legend:

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

    r38895 r42282  
    9393 
    9494                  If you are unsure, select N. 
     95 
     96        config PKG_CHECK_FORMAT_SECURITY 
     97                bool 
     98                prompt "Enable gcc format-security" 
     99                default n 
     100                help 
     101                  Add -Wformat -Werror=format-security to the CFLAGS 
     102                  You can disable this per package by adding 
     103                  PKG_CHECK_FORMAT_SECURITY:=0 in the package Makefile 
    95104 
    96105        config PKG_BUILD_USE_JOBSERVER 
  • trunk/include/package.mk

    r41504 r42282  
    1515PKG_BUILD_PARALLEL ?= 
    1616PKG_USE_MIPS16 ?= 1 
    17 PKG_CHECK_FORMAT_SECURITY ?= 0 
     17PKG_CHECK_FORMAT_SECURITY ?= 1 
    1818 
    1919ifneq ($(CONFIG_PKG_BUILD_USE_JOBSERVER),) 
     
    3535  endif 
    3636endif 
    37 ifeq ($(strip $(PKG_CHECK_FORMAT_SECURITY)),1) 
    38   TARGET_CFLAGS += -Wformat -Werror=format-security 
     37ifdef CONFIG_PKG_CHECK_FORMAT_SECURITY 
     38  ifeq ($(strip $(PKG_CHECK_FORMAT_SECURITY)),1) 
     39    TARGET_CFLAGS += -Wformat -Werror=format-security 
     40  endif 
    3941endif 
    4042 
Note: See TracChangeset for help on using the changeset viewer.