瀏覽代碼

Add -Cg for bootstrap depending on source OS/CPU as it is normally added for target OS/CPU

git-svn-id: trunk@32603 -
pierre 9 年之前
父節點
當前提交
b1e4b56900
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      packages/fpmkunit/Makefile.fpc

+ 7 - 0
packages/fpmkunit/Makefile.fpc

@@ -62,6 +62,13 @@ ifdef CPU_TARGET
 FPC_TARGETOPT+=--cpu=$(CPU_TARGET)
 endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
+# Force -Cg for bootstrap depending on XX_SOURCE for the same targets as 
+# as those XX_SOURCE (avoid linker warnings about mixing abi and non-abi files of mips-linux)
+ifneq ($(findstring $(OS_SOURCE),dragonfly freebsd openbsd netbsd linux solaris),)
+ifneq ($(findstring $(CPU_SOURCE),x86_64 mips mipsel),)
+override FPCMAKEOPT+=-Cg
+endif
+endif
 
 [rules]
 .NOTPARALLEL: