diff options
-rw-r--r-- | config/global/build-behave.in | 10 | ||||
-rw-r--r-- | scripts/crosstool-NG.sh.in | 3 |
2 files changed, 12 insertions, 1 deletions
diff --git a/config/global/build-behave.in b/config/global/build-behave.in index 7092a7f..fae9917 100644 --- a/config/global/build-behave.in +++ b/config/global/build-behave.in @@ -41,6 +41,16 @@ config USE_PIPES Use gcc's option -pipe to use pipes rather than temp files when building the toolchain. +config EXTRA_FLAGS_FOR_HOST + string + prompt "Extra host compiler flags" + default "" + help + Extra flags to pass to the host C and C++ compiler. + + May be used to change the default features of the host + compiler such as turning off the stack protector or fortify. + choice bool prompt "Shell to use as CONFIG_SHELL" diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in index 6b6aa0e..4499f71 100644 --- a/scripts/crosstool-NG.sh.in +++ b/scripts/crosstool-NG.sh.in @@ -476,7 +476,8 @@ if [ -z "${CT_RESTART}" ]; then # Help gcc CT_CFLAGS_FOR_HOST= - [ "${CT_USE_PIPES}" = "y" ] && CT_CFLAGS_FOR_HOST="${CT_CFLAGS_FOR_HOST} -pipe" + [ "${CT_USE_PIPES}" = "y" ] && CT_CFLAGS_FOR_HOST+=" -pipe" + CT_CFLAGS_FOR_HOST+="${CT_EXTRA_FLAGS_FOR_HOST}" # Override the configured jobs with what's been given on the command line [ -n "${CT_JOBS}" ] && CT_PARALLEL_JOBS="${CT_JOBS}" |