delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/09/02/05:08:36

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=I0JyZwXgpN/oTlvr
f2neNucB69CysN4FTWIlg8BgF9Qt2Seyg1CnFk1umiMzgnHaXimyRzW52Gr/Ynh0
Q26uMYx370HM3O/NiKi0drh0TgTRph9B+/Hoy0j9aTR2Y1LHF6O96exgoj2bz1FD
Tl/qRJ8y/SqOTXGGeCYtQEs6uZI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=l+YSiwWNJqOUodP24P26xQ
UJdME=; b=Wc8/oI9xJV1WUMmif3J9EM8VCIkYiyYUeDvBfkIDy2zQxsK/yNqdpg
YbEzwaknIRemhTOxdRxUddvKBx0khWuGI1TSo/94OodFrn7aOIduCnkn34srZrkE
BZkCVehCcz221HesCOHbCAV7k0puqI3DJXYVTSUAjLN6HmG/NBfyA=
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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=0.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=H*Ad:D*t-online.de, Whobrey, whobrey, doesn=e2?=
X-HELO: mailout12.t-online.de
Subject: Re: Advice on setting Cygwin build parameters for OpenSC.
To: cygwin AT cygwin DOT com
References: <BY1PR14MB015068FFCE2A1631A3DC7A32C40D0 AT BY1PR14MB0150 DOT namprd14 DOT prod DOT outlook DOT com>
From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= <HBBroeker AT t-online DOT de>
Message-ID: <d7fea18b-5088-9751-0ef6-6b3d33183d72@t-online.de>
Date: Sun, 2 Sep 2018 11:07:00 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.0
MIME-Version: 1.0
In-Reply-To: <BY1PR14MB015068FFCE2A1631A3DC7A32C40D0@BY1PR14MB0150.namprd14.prod.outlook.com>
X-IsSubscribed: yes

Am 02.09.2018 um 03:22 schrieb Darren Whobrey:

> The tweak required to get OpenSC to work with the standard Cygwin 
> utils, like ssh-agent, is to comment out a line in the configure.ac 
> script that previously was causing it to force a WND build, which 
> resulted in struct packing of 1 – and that doesn’t work with the ssh 
> utils distributed with Cygwin. For details see the end of thread
> here: https://github.com/OpenSC/OpenSC/issues/607.

That line is flat-out wrong.  Delete it.  You're already in a 
--host=*cygwin* specific section of your configure.ac script, so there's 
no further precautions to be taken.

While at it, you may just as well delete the entire "with_cygwin_native" 
branch (lines 100..105), because that has been un-applicable for years. 
  Building for native windows (i.e. MinGW) is has long since stopped to 
be done by a -mno-cygwin flag.  Instead you would pass the configure 
script a --host={something with mingw in it} flag to initiate a proper 
cross-build, and that will bring you into the existing --host=*mingw* 
case abvoe.


> The question is, what is the most sensible way to update the
> configure.ac and still support other Cygwin users that may be using
> mingw or other toolchains rather than gcc? 

Checking for GCC is almost certainly a red herring here.

> should be to not include the offending line, but then that would
> break WND builds. 

Not really, because whatever you mean by "WND builds", they won't be 
ending up in that cygwin case.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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