delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/16/07:42:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
From: "Dave Korn" <dk AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Bizarre behaviour of "make --win32"
Date: Thu, 16 Sep 2004 12:39:19 +0100
MIME-Version: 1.0
In-Reply-To: <20040916003115.D20FBE538@carnage.curl.com>
Message-ID: <NUTMEGS2TRqf69aZbLA00000007@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 16 Sep 2004 11:39:19.0437 (UTC) FILETIME=[CDB53BD0:01C49BE1]

> -----Original Message-----
> From: cygwin-owner On Behalf Of Bob Byrnes
> Sent: 16 September 2004 01:31

> On Sep 15,  1:18pm, Dave Korn" wrote:
> -- Subject: RE: Bizarre behaviour of "make --win32"
> > 
> > The only thing that has been going wrong here is that when 
> make invokes
> > the command through execvp it runs in the same unix-y 
> environment that make
> > is running in itself, which defies the purpose of the 
> --win32 switch; when
> > the redirection of the command disables this optimisation, 
> it correctly
> > launches cmd.exe to execute subcommands.
> 
> If your goal is to *always* use cmd.exe, i.e., to completely disable
> the optimization, then it should suffice to add ...
> 
>     SHELL = cmd.exe
> 
> ... to your Makefile (you would still use make --win32 in 
> order to enable
> various other win32-style Makefile syntax rules).

  Yep, 'doze-style path support is one of the other things I needed here.
Actually, I noticed something a bit tricky:  even with --win32, you can't
easily manipulate file paths with spaces in them, because space is used as a
word separator in make variables, and they don't understand any form of
quoting or escaping spaces to make multiple words count as one.....

 (Personally, I'd rather have done the whole thing in posix shell, but there
ya go: I've got a mixed and heterogeneous working environment to support
here.)

> I would tend to agree that the run-simple-commands-directly 
> optimization
> is not so useful, or arguably even a bug, for make --win32.  The
> optimization is not supposed to affect how the programs run, and it
> clearly does.

 .... now looking at construct_command_argv and
construct_command_argv_internal in job.c ....

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
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