* don't compile gdbver when the target is not the same as the source

This commit is contained in:
peter 2002-09-15 11:01:45 +00:00
parent 876fca9e8f
commit f2cdeaf6a6
2 changed files with 17 additions and 0 deletions

View File

@ -1349,6 +1349,7 @@ makefiles: fpc_makefiles
ifneq ($(wildcard fpcmake.loc),)
include fpcmake.loc
endif
ifeq ($(OS_SOURCE)$(CPU_SOURCE),$(OS_TARGET)$(CPU_TARGET))
ifeq ($(GDBFOUND),1)
$(CURRDIR)getver$(EXEEXT) : gdbver.pp
$(COMPILER) -o$(CURRDIR)getver$(EXEEXT) gdbver.pp
@ -1368,6 +1369,12 @@ gdbint$(PPUEXT): gdbint.pp
@$(ECHO) libgdb.a not found, using default GDB $(GDBVER)
$(COMPILER) -d$(GDBVER) gdbint.pp
endif
else
GDBVER=GDB_V5
gdbint$(PPUEXT): gdbint.pp
@$(ECHO) Different target os or cpu, using default GDB $(GDBVER)
$(COMPILER) -d$(GDBVER) gdbint.pp
endif
gdbcon$(PPUEXT): gdbcon.pp gdbint$(PPUEXT)
ifeq ($(OS_TARGET),go32v2)
DBGCOM=dbgcom$(OEXT)

View File

@ -58,6 +58,8 @@ endif
[rules]
ifeq ($(OS_SOURCE)$(CPU_SOURCE),$(OS_TARGET)$(CPU_TARGET))
ifeq ($(GDBFOUND),1)
# libgdb.a found
@ -85,6 +87,14 @@ gdbint$(PPUEXT): gdbint.pp
$(COMPILER) -d$(GDBVER) gdbint.pp
endif
else
# Different OS_TARGET, default to libgdb v5
GDBVER=GDB_V5
gdbint$(PPUEXT): gdbint.pp
@$(ECHO) Different target os or cpu, using default GDB $(GDBVER)
$(COMPILER) -d$(GDBVER) gdbint.pp
endif
gdbcon$(PPUEXT): gdbcon.pp gdbint$(PPUEXT)
ifeq ($(OS_TARGET),go32v2)