delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/08/28/15:55:08

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: Phil Smith <phil AT voltage DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Thu, 28 Aug 2008 12:54:14 -0700
Subject: Probably stupid make question
Message-ID: <B870629719727B4BA82A6C06A31C291207429E06EA@hqmailsvr01.voltage.com>
Accept-Language: en-US
acceptlanguage: en-US
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=4.65.7161:2.4.4,1.2.40,4.0.164 definitions=2008-08-28_11:2008-08-28,2008-08-28,2008-08-28 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=3.1.0-0805090000 definitions=main-0808280116
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m7SJt6RF022350

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"?).

Is there a flag or other setting to change this behavior?

I spent a bunch of time searching for any discussion, but "make" is a pretty generic term, I get tens of thousands of hits with anything I've tried (it doesn't help that most search engines strip "-D" to just "D", and then probably drop that...).
--
...phsiii

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