|Subject:||RE: Shell commands in makefile not working (running Windows XP)|
|Date:||Wed, 13 Aug 2003 11:03:58 -0700|
Looks like gmake calls any command line interpreter with –c probably because of its original days when it was developed on Unix. Thus, to change how gmake specifies that parameter, you would either have to (as far as I know) change the source code, which you obviously aren’t going to want to do. Maybe there is a more windows friendly version of gmake available to you which would recognize the difference in command line switches between Unix and Win32 systems?? Other than that I don’t think there is any way to change the way that CreateProcess() is invoked inernally. Sorry man.
I'm actually working on a related problem at the moment. I haven't tried to get it to expand an environment variable in the SHELL command -- I just put in the full path.
I first tried setting MAKESHELL (as per docs) but it did not override?
[I'm trying to run gnumake under cygwin with makefiles that work if you invoke things from a cmd.exe shell, or from a cygwin shell.]
The issue I'm encountering at the moment is that gnumake is creating a process in this way:
Issuing this from the command line directly I find that cmd.exe (on winxp) is senstive to /C versus -c (*sigh*). Anyone know if there is a way to get gmake to change that option via some var?
|[Prev in Thread]||Current Thread||[Next in Thread]|