X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <48B706FB.4CAE7693@dessent.net>
Date: Thu, 28 Aug 2008 13:13:47 -0700
From: Brian Dessent <brian@dessent.net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: Probably stupid make question
References: <B870629719727B4BA82A6C06A31C291207429E06EA@hqmailsvr01.voltage.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Phil Smith wrote:

> We're perverting CMake and Cygwin make to use a cross-compiler for z/OS (IBM mainframe). We've beaten it mostly into submission, but are hitting an issue with definitions being passed.  Cygwin make seems to be passing them in the format:
>         -Dvarname value
> rather than:
>         -Dvarname=value
> and the cross-compiler doesn't like that much. Some discussion with more *IX-savvy friends suggests that the "blank" format is older, and is deprecated due to ambiguity (does "-Dvarname abc.c xyz.c" mean "set varname to abc.c and compile xyz.c", or "set varname to 1 and compile abc.c and xyz.c"?).

I think you're going to have to be more specific, such as providing a
testcase that reproduces the problem.  This must be due to some aspect
of cmake, because there's nothing in plain make (AFAIK) that has
anything to do with how -D or any other parameter is passed to any tool
-- make executes commands exactly as written in the Makefile, no more no
less.

Brian

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

