소스 검색

Fix gcc options for mips CPU

Pierre Muller 3 년 전
부모
커밋
6bded28a10
2개의 변경된 파일205개의 추가작업 그리고 169개의 파일을 삭제
  1. 187 168
      utils/fpcm/fpcmake.inc
  2. 18 1
      utils/fpcm/fpcmake.ini

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 187 - 168
utils/fpcm/fpcmake.inc


+ 18 - 1
utils/fpcm/fpcmake.ini

@@ -876,8 +876,23 @@ ifeq ($(BINUTILSPREFIX),)
 GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
 else
 # 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
+endif
+else
+ifeq ($(BINUTILSPREFIX),)
+GCCLIBDIR:=$(shell dirname `gcc -m32 -print-libgcc-file-name`)
 else
 CROSSGCCOPT=-m32
 endif
@@ -885,6 +900,8 @@ endif
 endif
 endif
 endif
+endif
+endif
 
 # Check if FPCFPMAKE compiler is same target as FPC
 ifdef FPCFPMAKE

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.