On 19/04/2025 18:09, Brian Inglis via Cygwin-apps wrote:
Could we use gendef and nm/objdump to compare Cygwin definitions and
uses
Yeah, my vague idea here was to have some tool which could be run by
cygport, which grovels over the imports from cygwin DLL, compares it
with some dataset which gives the API level at which each export was
added, so we can convert a 'cygwin' dependency into 'cygwin-api >=
0.355' (as per [1])
(and arrange for the cygwin package to have a matching provides)
Generalization so the tool can apply to arbitrary DLLs is left as an
exercise for the reader.
[1]
https://cygwin.com/cgit/newlib-cygwin/tree/winsup/cygwin/include/cygwin/version.h#n39