Browse Source

* use -dUSE_MINGW_GDB for gdbcon unit also

git-svn-id: trunk@14034 -
pierre 15 years ago
parent
commit
a0b8dbcce5
2 changed files with 12 additions and 0 deletions
  1. 6 0
      packages/gdbint/Makefile
  2. 6 0
      packages/gdbint/Makefile.fpc

+ 6 - 0
packages/gdbint/Makefile

@@ -2998,6 +2998,12 @@ gdbint$(PPUEXT): gdbint.pp gdbver.inc
 	$(COMPILER) -d$(GDBVER) $(GDBLIBINCCOND)  -Fisrc -Fusrc src/gdbint.pp
 endif
 gdbcon$(PPUEXT): gdbcon.pp gdbint$(PPUEXT)
+ifeq ($(wildcard $(GDBLIBDIR)/libmingw32.a),)
+	$(COMPILER) gdbcon.pp
+else
+	$(COMPILER) -dUSE_MINGW_GDB gdbcon.pp
+endif
+	$(EXECPPAS)
 ifeq ($(OS_TARGET),go32v2)
 DBGCOM=dbgcom$(OEXT)
 else

+ 6 - 0
packages/gdbint/Makefile.fpc

@@ -130,6 +130,12 @@ gdbint$(PPUEXT): gdbint.pp gdbver.inc
 endif
 
 gdbcon$(PPUEXT): gdbcon.pp gdbint$(PPUEXT)
+ifeq ($(wildcard $(GDBLIBDIR)/libmingw32.a),)
+        $(COMPILER) gdbcon.pp
+else
+        $(COMPILER) -dUSE_MINGW_GDB gdbcon.pp
+endif
+	$(EXECPPAS)
 
 ifeq ($(OS_TARGET),go32v2)
 DBGCOM=dbgcom$(OEXT)