diff options
author | davem <davem@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-03 06:07:39 +0000 |
---|---|---|
committer | davem <davem@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-03 06:07:39 +0000 |
commit | 95de80bc124bba09d4cf629e4ebcaae326f2aea1 (patch) | |
tree | 9a17b80ba28414db1fbe3aceb5eaaecf1b619dda /libgcc/configure.ac | |
parent | 9d4feab76e4ef58c76c33283ba7c37eb67730277 (diff) | |
download | gcc-95de80bc124bba09d4cf629e4ebcaae326f2aea1.tar.gz |
Fix multilib build of libgcc on Linux/sparc.
* configure.ac: Set host_address on sparc too.
* configure: Regenerate.
* config.host: Add sparc/t-linux64 and sparc/t-softmul conditionally
based upon host_address.
* config/sparc/t-linux64: Set CRTSTUFF_T_CFLAGS unconditionally.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180818 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc/configure.ac')
-rw-r--r-- | libgcc/configure.ac | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libgcc/configure.ac b/libgcc/configure.ac index a505257ac23..5250be3b59e 100644 --- a/libgcc/configure.ac +++ b/libgcc/configure.ac @@ -255,11 +255,12 @@ AC_CACHE_CHECK([whether assembler supports CFI directives], [libgcc_cv_cfi], [libgcc_cv_cfi=yes], [libgcc_cv_cfi=no])]) -# Check 32bit or 64bit for x86. +# Check 32bit or 64bit for x86 and sparc. case ${host} in -i?86*-*-* | x86_64*-*-*) +i?86*-*-* | x86_64*-*-* | sparc*-*-*) cat > conftest.c <<EOF -#ifdef __x86_64__ +#if defined(__x86_64__) || \ + (defined(__sparc__) && defined(__arch64__)) host_address=64 #else host_address=32 |