delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/21/17:53:59

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <50028CAE26D1D3118C7F00A0CC50D6252D1E56@EMWARESERVER>
From: Scott Carter <scarter AT emware DOT com>
To: "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: RE: make --win32 incorrectly handles PATH
Date: Fri, 21 Jul 2000 15:48:29 -0600
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

On Friday, July 21, 2000 12:12 AM, Lassi A. Tuura wrote 
>You could try something like
> export PATH := $(PATH):$(EXTRA_PATH)
>in your makefile.
>
>I would expect that to do the right thing in unixy mode -- not having
>the extra space and exporting the changed value to a subprocesses. 
>Whether that will actually make it to %PATH% under Win32 I have 
>no idea, and unfortunately can't test right now...


I haven't put much into testing the unix mode cuz we don't use it. We
selected the cygwin port of gnu make specifically because we wanted the
increased Win/DOS compatibility we get in win32 mode. But since you
mentioned it, I gave it a quick look-see.

Following your suggestion, in both unix and win32 modes I found that the
form
    PATH +=xxx   #(no space between = and x.)
produces the extraneous space character I spoke of. But the form
    PATH := $(PATH):xxx  #(with space after =.)
does NOT produce the extraneous space. Interesting. That's a viable
workaround for one of the problems.

I had tried export before, but tried it again now, just to verify. In unix
mode, it's not needed for PATH, and seems to have no effect on Path. In
win32 mode, using export (on PATH or Path) doesn't fix the problem.

Scott Carter
Software Engineer

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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