The problem is the `echo $CC | sed 's/gcc/gpc/'` in p/rts/Makefile.in if $CC contains gcc in more than one position patched attached I havent tested this on the djgpp system but it schould work i have test dos style path with the sed script and it works
# Generated automatically from Makefile.in by configure. # Makefile to generate the GNU Pascal Run Time System. # Copyright (C) 1995-2000 Free Software Foundation, Inc. # # Authors: J.J. van der Heijden j.j.vanderheijden@student.utwente.nl # Frank Heckenbach frank@pascal.gnu.de # # This file is part of GNU Pascal. # # GNU Pascal is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # GNU Pascal is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GNU Pascal; see the file COPYING. If not, write to the # Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA # 02111-1307, USA.
# $(srcdir) is the RTS source directory VPATH = ../../../../gcc/p/rts srcdir = ../../../../gcc/p/rts
# Reasonable default values, toplevel Makefile overrides them. # CC needs to be the GNU C compiler. CC = /cygdrive/d/cygwin/gcc-2.95.2-2/build/gcc/xgcc -B/cygdrive/d/cygwin/gcc-2.95.2-2/build/gcc/ -B/usr/bin/i586-pc-cygwin32/bin/ -I/usr/bin/i586-pc-cygwin32/include
=> problem here substitution gcc => gpc wont do here patched sed => commandline
PC = `echo $(CC) | sed 's@^([^ ]*[/\][^/\]*)gcc@\1gpc@'` CFLAGS = -O2 AR = ar AR_FLAGS = rc RANLIB = ranlib RANLIB_TEST = true DESTDIR = .
--- p/rts/Makefile.in.old Mon Jul 24 01:31:26 2000 +++ p/rts/Makefile.in Mon Jul 24 01:33:16 2000 @@ -28,7 +28,7 @@ # Reasonable default values, toplevel Makefile overrides them. # CC needs to be the GNU C compiler. CC = @CC@ -PC = `echo $(CC) | sed 's/gcc/gpc/'` +PC = `echo $(CC) | sed 's@^([^ ]*[/\][^/\]*)gcc@\1gpc@'` CFLAGS = -O2 AR = @AR@ AR_FLAGS = rc