mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-20 17:12:55 +00:00
Allow setting --enable-cxx-flags on gcc ./configure
Some setups require one to pass extra CXX flags at the time of ./configure. Make it easy.
This commit is contained in:
parent
8dd4a2de00
commit
83a48e12f0
@ -205,6 +205,17 @@ config CC_SJLJ_EXCEPTIONS_DONT_USE
|
||||
|
||||
endchoice
|
||||
|
||||
config CC_ENABLE_CXX_FLAGS
|
||||
string
|
||||
prompt "Flags to pass to --enable-cxx-flags"
|
||||
default ""
|
||||
help
|
||||
Enter here the value of the gcc's ./configure option --enable-cxx-flags.
|
||||
Leave empty if you don't know better.
|
||||
|
||||
Note: just pass in the option _value_, that is only the part that goes
|
||||
after the '=' sign.
|
||||
|
||||
config CC_CORE_EXTRA_CONFIG
|
||||
string
|
||||
prompt "Core gcc extra config"
|
||||
|
@ -309,6 +309,9 @@ do_cc() {
|
||||
extra_config+=("--with-cloog=${CT_PREFIX_DIR}")
|
||||
extra_config+=("--with-mpc=${CT_PREFIX_DIR}")
|
||||
fi
|
||||
if [ -n "${CC_ENABLE_CXX_FLAGS}" ]; then
|
||||
extra_config+=("--enable-cxx-flags=${CC_ENABLE_CXX_FLAGS}")
|
||||
fi
|
||||
|
||||
CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user