mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 02:32:51 +02:00
Fix gcc options for mips CPU
This commit is contained in:
parent
680a5b94ff
commit
6bded28a10
File diff suppressed because it is too large
Load Diff
@ -876,8 +876,23 @@ ifeq ($(BINUTILSPREFIX),)
|
|||||||
GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
|
GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
|
||||||
else
|
else
|
||||||
# gcc mips seems not to recognize -m32/-m64
|
# gcc mips seems not to recognize -m32/-m64
|
||||||
ifneq ($(filter $(FPCFPMAKE_CPU_OPT),mips mipsel),)
|
ifneq ($(filter $(CPU_TARGET),mips64 mipsel64),)
|
||||||
|
ifeq ($(BINUTILSPREFIX),)
|
||||||
|
GCCLIBDIR:=$(shell dirname `gcc -mabi=64 -print-libgcc-file-name`)
|
||||||
|
else
|
||||||
|
CROSSGCCOPT=-mabi=64
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
# gcc mips seems not to recognize -m32/-m64
|
||||||
|
ifneq ($(filter $(CPU_TARGET),mips mipsel),)
|
||||||
|
ifeq ($(BINUTILSPREFIX),)
|
||||||
|
GCCLIBDIR:=$(shell dirname `gcc -mabi=32 -print-libgcc-file-name`)
|
||||||
|
else
|
||||||
CROSSGCCOPT=-mabi=32
|
CROSSGCCOPT=-mabi=32
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
ifeq ($(BINUTILSPREFIX),)
|
||||||
|
GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
|
||||||
else
|
else
|
||||||
CROSSGCCOPT=-m32
|
CROSSGCCOPT=-m32
|
||||||
endif
|
endif
|
||||||
@ -885,6 +900,8 @@ endif
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# Check if FPCFPMAKE compiler is same target as FPC
|
# Check if FPCFPMAKE compiler is same target as FPC
|
||||||
ifdef FPCFPMAKE
|
ifdef FPCFPMAKE
|
||||||
|
Loading…
Reference in New Issue
Block a user