Advice on setting Cygwin build parameters for OpenSC.
Hans-Bernhard Bröker
HBBroeker@t-online.de
Sun Sep 2 09:08:00 GMT 2018
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
More information about the Cygwin
mailing list