Advice on setting Cygwin build parameters for OpenSC.

Csaba Raduly
Thu Sep 6 16:25:00 GMT 2018

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 (,  the Cygwin-specific parts
are 10-11 years old.
"cygwin native = yes" means the old-style Mingw build ( -mno-cygwin )
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).

You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformat way
to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list