Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <021801c35c5f$e63aaf40$c460883e@starfruit>
From: "Max Bowsher" <maxb@ukf.net>
To: "Doru Carastan" <doru.carastan@mvista.com>
Cc: <cygwin@cygwin.com>
References: <3F21F6E5.4070107@mvista.com> <3F21FD8D.43882685@acm.org> <3F3160E3.2030403@mvista.com>
Subject: Re: Cygwin DLL configuration
Date: Wed, 6 Aug 2003 22:15:43 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165

Doru Carastan wrote:
> David Rothenberger wrote:
>> Gerrit recently posted a script ...
>>
>> See <http://www.cygwin.com/ml/cygwin/2003-07/msg01316.html>.
>>
>
> Thank you David, it did the trick. tooldir is the culprit.
>
> ifeq ($(target_alias),$(host_alias))
> ifeq ($(build_alias),$(host_alias))
> tooldir:=$(exec_prefix)
> else
> tooldir:=$(exec_prefix)/$(target_alias)
> endif
> else
> tooldir:=$(exec_prefix)/$(target_alias)
> endif
>
> For some reason the tooldir variable does not get set to ${exec_prefix}.

The reason is that the top level Makefile defines tooldir, and passes it
down through the FLAGS_TO_PASS mechanism, causing it to appear on the
command line of the sub-make. And command line variable definitions override
normal definitions of variables inside Makefiles.

Max.


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

