mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-08 02:45:56 +02:00
* don't compile gdbver when the target is not the same as the source
This commit is contained in:
parent
876fca9e8f
commit
f2cdeaf6a6
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user