Subject: Re: bash/gmake problem
From: [email-masked] (John Muller)

6 Nov 1997 15:58:12 -0800
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: [email-masked], [email-masked], [email-masked]

Hello,

I have found the problem.  It is a bug in gmake.

In version 3.75 change the line:
	#ifdef WIN32
		if (!strncmp(ep, "PATH", 4))
			unix_path = &ep[5];
		if (!strncmp(ep, "Path", 4))
			win32_path = &ep[5];
	#endif

to
	#ifdef WIN32
		if (!strncmp(envp[i], "PATH", 4))
			unix_path = &ep[5];
		if (!strncmp(envp[i], "Path", 4))
			win32_path = &ep[5];
	#endif

In version 3.75 or 3.76 change the line:

	struct variable *v = lookup_variable ("Path", 4);

to
	struct variable *v = lookup_variable ("PATH", 4);

thanks
jsm

> In my makefile I have a statement which looks like: 
> 
>      cd libsrc/somelib/src;  $(MAKE) -f somelib.mk $(ACTION) 
> 
> In a dos window or mks korn shell, gmake executes these statements correctly. 
> However, things fail when gmake is started in a bash shell.  The statement
> cd libsrc/somelib/src only goes one level deep (ie we are in the libsrc 
> directory and not libsrc/somlib/src).
> 
> Anybody have any ideas of what is going on?
     
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".