* when looking for the compiler, call fpc with the right target cpu name, resolves #9924 after makefile regeneration

git-svn-id: trunk@8911 -
This commit is contained in:
florian 2007-10-22 19:57:59 +00:00
parent a0ebdcf820
commit 3e7e3dc2eb
2 changed files with 2283 additions and 2218 deletions

File diff suppressed because it is too large Load Diff

View File

@ -167,7 +167,7 @@ ifndef FPC
FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
ifneq ($(FPCPROG),)
FPCPROG:=$(firstword $(FPCPROG))
FPC:=$(shell $(FPCPROG) -PB)
FPC:=$(shell $(FPCPROG) -P$(CPU_TARGET) -PB)
# Older fpc executables didn't support it and return
# Error: Illegal processor... If found then fallback to ppc386
ifneq ($(findstring Error,$(FPC)),)