浏览代码

* better fix for not automatically adding cross binutils prefixes for
darwin to darwin cross compilation (keeps CROSSCOMPILE=1 now, so other
CROSSCOMPILE-related changes are still done)

git-svn-id: trunk@11233 -

Jonas Maebe 17 年之前
父节点
当前提交
010246b1ae
共有 2 个文件被更改,包括 190 次插入191 次删除
  1. 181 184
      utils/fpcm/fpcmake.inc
  2. 9 7
      utils/fpcm/fpcmake.ini

文件差异内容过多而无法显示
+ 181 - 184
utils/fpcm/fpcmake.inc


+ 9 - 7
utils/fpcm/fpcmake.ini

@@ -276,15 +276,9 @@ SOURCESUFFIX=$(FULL_SOURCE)
 endif
 endif
 
 
 # Cross compile flag
 # Cross compile flag
-ifeq  ($(OS_TARGET),darwin)
-ifneq ($(OS_SOURCE),darwin)
-CROSSCOMPILE=1
-endif
-else
 ifneq ($(FULL_TARGET),$(FULL_SOURCE))
 ifneq ($(FULL_TARGET),$(FULL_SOURCE))
 CROSSCOMPILE=1
 CROSSCOMPILE=1
 endif
 endif
-endif
 
 
 # Check if the Makefile supports this target, but not
 # Check if the Makefile supports this target, but not
 # when the make target is to rebuild the makefile
 # when the make target is to rebuild the makefile
@@ -362,14 +356,22 @@ CROSSBINDIR:=$(wildcard $(FPCDIR)/bin/$(TARGETSUFFIX))
 endif
 endif
 
 
 # Default binutils prefix for cross compile when the
 # Default binutils prefix for cross compile when the
-# crossbindir is not set
+# crossbindir is not set (except for Darwin)
+ifeq ($(OS_TARGET),darwin)
+ifeq ($(OS_SOURCE),darwin)
+DARWIN2DARWIN=1
+endif
+endif
+
 ifndef BINUTILSPREFIX
 ifndef BINUTILSPREFIX
 ifndef CROSSBINDIR
 ifndef CROSSBINDIR
 ifdef CROSSCOMPILE
 ifdef CROSSCOMPILE
+ifndef DARWIN2DARWIN
 BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
 BINUTILSPREFIX=$(CPU_TARGET)-$(OS_TARGET)-
 endif
 endif
 endif
 endif
 endif
 endif
+endif
 
 
 # Try first the full target name, otherwise try only
 # Try first the full target name, otherwise try only
 # the OS for backwards compatibility
 # the OS for backwards compatibility

部分文件因为文件数量过多而无法显示