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:
Yann E. MORIN" 2009-08-19 19:44:45 +02:00
parent 8dd4a2de00
commit 83a48e12f0
2 changed files with 14 additions and 0 deletions

View File

@ -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"

View File

@ -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[*]}'"