aboutsummaryrefslogtreecommitdiff
path: root/scripts/build/cc
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-07-28 23:53:09 +0200
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-07-28 23:53:09 +0200
commit61ebaa97cae48a4f37d4272426c9c85c3cd462cb (patch)
treec54cfe652786776e012c28e855a4bae45d521e27 /scripts/build/cc
parente5f3082b3db90894ab03c3055d50cd4d0fa74707 (diff)
downloadcrosstool-ng-61ebaa97cae48a4f37d4272426c9c85c3cd462cb.tar.gz
crosstool-ng-61ebaa97cae48a4f37d4272426c9c85c3cd462cb.tar.bz2
crosstool-ng-61ebaa97cae48a4f37d4272426c9c85c3cd462cb.zip
cc/gcc: make sjlj config option a tristate
A tristate fits better here than a choice.
Diffstat (limited to 'scripts/build/cc')
-rw-r--r--scripts/build/cc/gcc.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index b26a26a5..af21e962 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -327,8 +327,11 @@ do_cc() {
[ "${CT_SHARED_LIBS}" = "y" ] || extra_config+=("--disable-shared")
[ -n "${CT_CC_PKGVERSION}" ] && extra_config+=("--with-pkgversion=${CT_CC_PKGVERSION}")
[ -n "${CT_CC_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_CC_BUGURL}")
- [ "${CT_CC_SJLJ_EXCEPTIONS_USE}" = "y" ] && extra_config+=("--enable-sjlj-exceptions")
- [ "${CT_CC_SJLJ_EXCEPTIONS_DONT_USE}" = "y" ] && extra_config+=("--disable-sjlj-exceptions")
+ case "${CT_CC_GCC_SJLJ_EXCEPTIONS}" in
+ y) extra_config+=("--enable-sjlj-exceptions");;
+ m) ;;
+ "") extra_config+=("--disable-sjlj-exceptions");;
+ esac
if [ "${CT_CC_CXA_ATEXIT}" = "y" ]; then
extra_config+=("--enable-__cxa_atexit")
else