diff options
author | Alexey Neyman <stilor@att.net> | 2015-11-11 08:14:53 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2016-06-09 17:12:49 -0700 |
commit | a65d8841ec0ceff75a3d5c3795cfb7435a194670 (patch) | |
tree | 1a8081a5be9d42ec4e84a662c21c674529548252 | |
parent | 55879ed1d83ebb72f2ab6cbbd892448c731a7163 (diff) | |
download | crosstool-ng-a65d8841ec0ceff75a3d5c3795cfb7435a194670.tar.gz crosstool-ng-a65d8841ec0ceff75a3d5c3795cfb7435a194670.tar.bz2 crosstool-ng-a65d8841ec0ceff75a3d5c3795cfb7435a194670.zip |
Enable multiarch support in pass-1 GCC.
By default, it is 'auto' - which means, it is enabled if there are
multilibs directories detected in the installation location for libgcc.
Thus, it is not detected for pass-1 GCC: the installation location is
empty at this point.
Signed-off-by: Alexey Neyman <stilor@att.net>
-rw-r--r-- | scripts/build/cc/100-gcc.sh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/scripts/build/cc/100-gcc.sh b/scripts/build/cc/100-gcc.sh index 7085a904..75721db5 100644 --- a/scripts/build/cc/100-gcc.sh +++ b/scripts/build/cc/100-gcc.sh @@ -403,10 +403,17 @@ do_gcc_core_backend() { extra_config+=("--with-system-zlib") fi - # Some versions of gcc have a deffective --enable-multilib. - # Since that's the default, only pass --disable-multilib. + # Some versions of gcc have a defective --enable-multilib. + # Since that's the default, only pass --disable-multilib. For multilib, + # also enable multiarch. Without explicit --enable-multiarch, pass-1 + # compiler is configured as multilib/no-multiarch and pass-2/final + # are multilib/multiarch (because gcc autodetects multiarch based on + # multiple instances of crt*.o in the install directory - which do + # not exist in pass-1). if [ "${CT_MULTILIB}" != "y" ]; then extra_config+=("--disable-multilib") + else + extra_config+=("--enable-multiarch") fi CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'" @@ -880,10 +887,12 @@ do_gcc_backend() { extra_config+=("--with-system-zlib") fi - # Some versions of gcc have a deffective --enable-multilib. + # Some versions of gcc have a defective --enable-multilib. # Since that's the default, only pass --disable-multilib. if [ "${CT_MULTILIB}" != "y" ]; then extra_config+=("--disable-multilib") + else + extra_config+=("--enable-multiarch") fi CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'" |