diff options
author | Ray Donnelly <mingw.android@gmail.com> | 2014-07-11 13:39:24 +0100 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2016-06-09 17:12:49 -0700 |
commit | aa30d0bc4fdf6480a5a24c69e5537f8c41011470 (patch) | |
tree | 6305f1a50ec87456131648ae9204fc6701653344 | |
parent | a65d8841ec0ceff75a3d5c3795cfb7435a194670 (diff) | |
download | crosstool-ng-aa30d0bc4fdf6480a5a24c69e5537f8c41011470.tar.gz crosstool-ng-aa30d0bc4fdf6480a5a24c69e5537f8c41011470.tar.bz2 crosstool-ng-aa30d0bc4fdf6480a5a24c69e5537f8c41011470.zip |
gcc: Add --with-multilib-list option
Written by Bryan Hundven.
Modified by Alexey Neyman to actually add the option to gcc.in.
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
Signed-off-by: Alexey Neyman <stilor@att.net>
-rw-r--r-- | config/cc/gcc.in.2 | 10 | ||||
-rw-r--r-- | scripts/build/cc/100-gcc.sh | 6 |
2 files changed, 16 insertions, 0 deletions
diff --git a/config/cc/gcc.in.2 b/config/cc/gcc.in.2 index 17b41ccf..c200d22c 100644 --- a/config/cc/gcc.in.2 +++ b/config/cc/gcc.in.2 @@ -37,6 +37,16 @@ config CC_GCC_EXTRA_CONFIG_ARRAY if they are properly quoted (or escaped, but prefer quotes). Eg.: --with-foo="1st arg with 4 spaces" --with-bar=2nd-arg-without-space +config CC_GCC_MULTILIB_LIST + string + prompt "List of multilib variants" + depends on MULTILIB + help + Architecture-specific option of expanding or restricting the list of + the multilib variants to be built. Refer to GCC installation manual + for the format of this option for a particular architecture. + Leave empty to use the default list for this architecture. + config CC_GCC_TARGET_FINAL bool prompt "Use the default targets all and install for the final compiler" diff --git a/scripts/build/cc/100-gcc.sh b/scripts/build/cc/100-gcc.sh index 75721db5..7bb3610f 100644 --- a/scripts/build/cc/100-gcc.sh +++ b/scripts/build/cc/100-gcc.sh @@ -414,6 +414,9 @@ do_gcc_core_backend() { extra_config+=("--disable-multilib") else extra_config+=("--enable-multiarch") + if [ -n "${CT_CC_GCC_MULTILIB_LIST}" ]; then + extra_config+=("--with-multilib-list=${CT_CC_GCC_MULTILIB_LIST}") + fi fi CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'" @@ -893,6 +896,9 @@ do_gcc_backend() { extra_config+=("--disable-multilib") else extra_config+=("--enable-multiarch") + if [ -n "${CT_CC_GCC_MULTILIB_LIST}" ]; then + extra_config+=("--with-multilib-list=${CT_CC_GCC_MULTILIB_LIST}") + fi fi CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'" |