Mail Archives: djgpp/2000/06/01/11:30:41
On Thu, 1 Jun 2000, Tilman Sauerbeck wrote:
> C:\WINDOWS\COMMAND.COM -ec
Here you see that Make tried to invoke "command.com -ec SOMETHING". This
causes the problem, since COMMAND.COM doesn't understand the "-ec" part.
> COMSPEC=C:\WINDOWS\COMMAND.COM
This is okay, there's nothing wrong with your system setup per se.
> %.d: %.c
> $(SHELL) -ec '$(CC) $(MAKEDEP) $(CPP_OPTS) $(CC_SWITCHES) $< | sed
> '\''s;$*.o;& $@;g'\'' > $@'
And here's the villain: this command clearly relies on a Unixy shell:
only Unixy shells accept the -ec switch. (There are also several other
places in this Makefile that need a Unixy shell.) So what you need to do
is (1) install the port of Bash, and (2) make it so the Makefile sets
SHELL = /bin/sh in the case of DJGPP. Look at the other OSes which use
the output of `uname' and set SHELL in a similar manner, for an example
of how this should be done.
It is possible that you will need to install ports of additional
utilities. The above command clearly requires Sed, you also need `uname'
(from Sh-utils) and I saw `cmp' (from Diffutils); there may be more.
- Raw text -