delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/21/12:24:03

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Reply-To: paulconnell AT clara DOT co DOT uk
Subject: Re: Implicit dependency on the existence of /bin/ in make 3.79.1-7 - possible bug
Cc:
X-Remote_Addr: 195.70.93.15
Message-Id: <E19IWL1-00025Y-00@oceanus.uk.clara.net>
From: Paul Connell <paulconnell AT clara DOT co DOT uk>
Date: Wed, 21 May 2003 17:21:11 +0100

Me again.

<quote cgf>

Workarounds are to set the environment variable MAKE_MODE=unix or to 
add
the --unix option to your make command line.

<unquote>

The MAKE_MODE workaround is perfectly acceptable, in my opinion.

However, there is still a bug that causes that workaround to not work.

main.c:869:
{
char *make_mode_env;

/* Read the environment variable MAKE_MODE */
/* If it's not "UNIX", set unixy_shell to 0. */
make_mode_env = getenv ("MAKE_MODE");
if (make_mode_env && !strcaseequ (make_mode_env, "UNIX"))
unixy_shell = 0;
}

Needs to say something more like this:
{
char *make_mode_env;
int makemode_unix;

/* Read the environment variable MAKE_MODE */
/* Override unixy_shell appropriately if it differs*/
make_mode_env = getenv ("MAKE_MODE");
makemode_unix = (make_mode_env && strcaseequ (make_mode_env, "UNIX"));
if (unixy_shell && !makemode_unix)
unixy_shell = 0;
else if (!unixy_shell && makemode_unix)
unixy_shell = 1;
}


Sorry if that came out badly formatted, I'm using a dodgy email client.


As it stands it can only override a unixy_shell into a non-unixy one, 
not the other way round, as is required in my situation.



--
Thanks for all the help guys, I appreciate it.
Paul

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019