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=BzCWRa7w6w2igFS3 PSgVfH5EbYMsBtLsLUMtoKgIwxj9nEq8NossYdf5IQ4BKGNxBssKzZrbATsfjd+v SPKSsGzBkNZgxQ5/8Koc4WgUYDZemkASxhzuW5ZCJ7U55L4dKeLKJl0Ve8aRIGoy j3JnxQ8VqpgaoDDhkrXhPo4A/7A= 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=Jw8vtP177wtE3nZjbtCINX JOue4=; b=BoYo+aUOtRvFJv6oVTdojoKjWBY5z2cax825Nbi+7ULk6CcsrASdvH 2eXtBh9hLaouZxPJEZnVOyJqVuLuB1sa+faejZkNI7vigcGGgnm6lAmcKmfugDEk j0BXfXqh/Lgyzx1lLstEpw05uK4bhFMhNH1Oo7hAz04QV8zOi2TsA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy=mingw X-HELO: mail-it0-f49.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:openpgp:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=A0u+XJWh7ajpcI19HDcvgRPF5N6hPzFxF1AfB+dk6wg=; b=Ale7bV0rjKVfJAT3hYYAjwxBl8aFhW4y54+eTJcsfH8j6veJlDDBQJA+8ezqaRJ0lx /nN2KVK1YPX8D3KRDPJCeXTDenTaqrQrbiE3fz7/36eRnxsUV8Q0x/RxJDC8/uvQ7RpN ebi2lsegi7oeZnWgsZ1VNP2PTnQjPPf3oD1Qb8bKjwl++EQDJP2LE1/4MlzvYeGaCSKW BM6+UxaHSUoJ3btHirOARx6z40pqBWVVMr0xEI+heeHAYcf5LlNkAoI8sayQ9QUIPPRb K3TfR8+51ewlzKXYrlsqaDVTHZjmYZmVoxxhaLocjq+x7AvyYg3Nijxq7uyB89s7DyeV FhQQ== Subject: Re: Advice on setting Cygwin build parameters for OpenSC. To: cygwin AT cygwin DOT com References: <1536212829808-0 DOT post AT n5 DOT nabble DOT com> <1677001344 DOT 20180906165924 AT yandex DOT ru> From: cyg Simple Openpgp: preference=signencrypt Message-ID: <1103e83d-9436-6ce3-1174-fae1c81db39a@gmail.com> Date: Sat, 8 Sep 2018 23:41:20 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 9/6/2018 12:25 PM, Csaba Raduly wrote: > Hi Andrey, > > On Thu, Sep 6, 2018 at 3:59 PM, Andrey Repin wrote: >> Greetings, dwhobrey! >> >>> Thank you for the feedback. >>> WND would be _WIN32 builds. >> >> If you are going for native builds, why using Cygwin in the first place? >> If you still want to use Cygwin for building, you have to install >> cross-compilers and properly specify target host. > > In OpenSC's build system (configure.ac), the Cygwin-specific parts > are 10-11 years old. > "cygwin native = yes" means the old-style Mingw build ( -mno-cygwin ) The -mno-cygwin has been dead for a few several years now. The option is no longer available in current GCC. You now install the {x86_64,i686}-w64-mingw32 cross compilers and specify --host={x86_64,i686}-w64-mingw32 when you configure. > to create native Win32 programs/libraries, > whereas "cygwin native = no" means generating Cygwin programs/libraries > (with CRYPTOKI_FORCE_WIN32 being forcibly - and probably incorrectly - defined). > So to get Cygwin specific build you just don't specify the --host option. The change to configure.ac and supporting .m4 files is up to you. But -mno-cygwin isn't available if you plan to use current GCC regardless. -- cyg Simple -- 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