mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 13:08:00 +02:00
Add handling of sparc64-linux and pass -m32/-m64 to $CROSSGCC call
git-svn-id: trunk@44881 -
This commit is contained in:
parent
4d25558519
commit
3f9e6aa6b9
File diff suppressed because it is too large
Load Diff
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user