This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bash/gmake problem


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
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]