diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2020-11-07 11:07:11 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2020-11-07 11:10:31 +0100 |
commit | df784801daf0185a1e22ebf03d48363530717882 (patch) | |
tree | fdb2afd0bf77f575526023df5b2a871cef9254e2 | |
parent | 13193e4000ef7c342663e3aa653284bcfeb618ff (diff) | |
download | gcc-df784801daf0185a1e22ebf03d48363530717882.zip gcc-df784801daf0185a1e22ebf03d48363530717882.tar.gz gcc-df784801daf0185a1e22ebf03d48363530717882.tar.bz2 |
Fix Ada build failure for the SuSE PowerPC64/Linux compiler
gcc/ada/ChangeLog:
* gcc-interface/Makefile.in: Force target_cpu to powerpc if the
nominal target is powerpc64-suse-linux.
-rw-r--r-- | gcc/ada/gcc-interface/Makefile.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ada/gcc-interface/Makefile.in b/gcc/ada/gcc-interface/Makefile.in index 6177d75..bdf6ae2 100644 --- a/gcc/ada/gcc-interface/Makefile.in +++ b/gcc/ada/gcc-interface/Makefile.in @@ -338,7 +338,7 @@ GNATMAKE_OBJS = a-except.o ali.o ali-util.o aspects.o s-casuti.o alloc.o \ # picks up the right files. For a given target this must be coherent # with MULTILIB_DIRNAMES defined in gcc/config/target/t-*. -ifeq ($(strip $(filter-out %x86_64, $(target_cpu))),) +ifeq ($(strip $(filter-out x86_64, $(target_cpu))),) ifeq ($(strip $(MULTISUBDIR)),/32) target_cpu:=i686 else @@ -348,6 +348,11 @@ ifeq ($(strip $(filter-out %x86_64, $(target_cpu))),) endif endif +# The SuSE PowerPC64/Linux compiler is actually a 32-bit PowerPC compiler +ifeq ($(strip $(filter-out powerpc64 suse linux%, $(target_cpu) $(target_vendor) $(target_os))),) + target_cpu:=powerpc +endif + # Configuration of host tools # Under linux, host tools need to be linked with -ldl |