Mail Archives: djgpp/2000/05/26/10:17:13
Thomas Zwicker <tzwicker AT ee DOT ethz DOT ch> wrote:
> Now the questions:
> - is it possible to invoke a non djgpp gnu compiler with this make
> (maybe there's some restriction because of param. passing ?)
Possible: yes. But you'll lack some of the most useful features.
Passing of long command lines is the most important one of them.
There is effectively no reliable way to pass an overly long
commandline to an arbitrary DOS program: lots of different methods
have been developed for doing that, over time, and none of them ever
became a an accepted standard. There's little DJGPP make can do about
it: the called application is the bottleneck.
> - how do I properly unset the SHELL-variable as proposed in FAQ16_6
set SHELL=
in command.com, before you start Make.
> - do I better use a bash-shell (keeping unix "compatibility")
> and where to get it ?
Probably yes. If you the makefile is Unix-borne, it'll be much easier
to get it working with Bash (and some more DJGPP utilities, to provide
the typical Unix commands like 'cp', 'rm', 'sed' and some others) than
if you try to change it to comply with DOSisms all over the place.
> - or does an echo-command don't work anyhow with a long text line
'echo' behaves differently depending on the 'SHELL' variable. With
DJGPP Bash as the SHELL, it can handle over-long command lines. With
command.com, it is limited by what the 'echo' builting of command.com
can handle. In some situations, it may be useful to replace 'echo' by
'gecho' or 'djecho' -- external DJGPP programs that implement 'echo'
functionality, and can handle long command lines.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -