mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 21:49:06 +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),)
|
ifneq ($(wildcard fpcmake.loc),)
|
||||||
include fpcmake.loc
|
include fpcmake.loc
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_SOURCE)$(CPU_SOURCE),$(OS_TARGET)$(CPU_TARGET))
|
||||||
ifeq ($(GDBFOUND),1)
|
ifeq ($(GDBFOUND),1)
|
||||||
$(CURRDIR)getver$(EXEEXT) : gdbver.pp
|
$(CURRDIR)getver$(EXEEXT) : gdbver.pp
|
||||||
$(COMPILER) -o$(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)
|
@$(ECHO) libgdb.a not found, using default GDB $(GDBVER)
|
||||||
$(COMPILER) -d$(GDBVER) gdbint.pp
|
$(COMPILER) -d$(GDBVER) gdbint.pp
|
||||||
endif
|
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)
|
gdbcon$(PPUEXT): gdbcon.pp gdbint$(PPUEXT)
|
||||||
ifeq ($(OS_TARGET),go32v2)
|
ifeq ($(OS_TARGET),go32v2)
|
||||||
DBGCOM=dbgcom$(OEXT)
|
DBGCOM=dbgcom$(OEXT)
|
||||||
|
@ -58,6 +58,8 @@ endif
|
|||||||
|
|
||||||
|
|
||||||
[rules]
|
[rules]
|
||||||
|
ifeq ($(OS_SOURCE)$(CPU_SOURCE),$(OS_TARGET)$(CPU_TARGET))
|
||||||
|
|
||||||
ifeq ($(GDBFOUND),1)
|
ifeq ($(GDBFOUND),1)
|
||||||
# libgdb.a found
|
# libgdb.a found
|
||||||
|
|
||||||
@ -85,6 +87,14 @@ gdbint$(PPUEXT): gdbint.pp
|
|||||||
$(COMPILER) -d$(GDBVER) gdbint.pp
|
$(COMPILER) -d$(GDBVER) gdbint.pp
|
||||||
endif
|
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)
|
gdbcon$(PPUEXT): gdbcon.pp gdbint$(PPUEXT)
|
||||||
|
|
||||||
ifeq ($(OS_TARGET),go32v2)
|
ifeq ($(OS_TARGET),go32v2)
|
||||||
|
Loading…
Reference in New Issue
Block a user