Add handling of sparc64-linux and pass -m32/-m64 to $CROSSGCC call

git-svn-id: trunk@44881 -
This commit is contained in:
pierre 2020-04-20 13:57:26 +00:00
parent 4d25558519
commit 3f9e6aa6b9
2 changed files with 381 additions and 363 deletions

File diff suppressed because it is too large Load Diff

View File

@ -847,12 +847,25 @@ ifeq ($(CPU_TARGET),i386)
ifneq ($(findstring x86_64,$(shell uname -a)),)
ifeq ($(BINUTILSPREFIX),)
GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
else
CROSSGCCOPT=-m32
endif
endif
endif
ifeq ($(CPU_TARGET),powerpc64)
ifeq ($(BINUTILSPREFIX),)
GCCLIBDIR:=$(shell dirname `gcc -m64 -print-libgcc-file-name`)
else
CROSSGCCOPT=-m64
endif
endif
ifeq ($(CPU_TARGET),sparc)
ifneq ($(findstring sparc64,$(shell uname -a)),)
ifeq ($(BINUTILSPREFIX),)
GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
else
CROSSGCCOPT=-m32
endif
endif
endif
endif
@ -861,10 +874,11 @@ endif
ifndef GCCLIBDIR
CROSSGCC=$(strip $(wildcard $(addsuffix /$(BINUTILSPREFIX)gcc$(SRCEXEEXT),$(SEARCHPATH))))
ifneq ($(CROSSGCC),)
GCCLIBDIR:=$(shell dirname `$(CROSSGCC) -print-libgcc-file-name`)
GCCLIBDIR:=$(shell dirname `$(CROSSGCC) $(CROSSGCCOPT) -print-libgcc-file-name`)
endif
endif
endif
#ifeq($(OS_SOURCE),linux)
ifdef inUnix
ifeq ($(OS_SOURCE),netbsd)