This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Advice on setting Cygwin build parameters for OpenSC.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]