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]

gcc: link scan order of /usr/lib and /usr/lib/w32api


JonY,

It has been brought to my attention that /usr/lib/w32api is now taking precedence over /usr/lib, which is a result of this commit:

https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=227962
https://github.com/gcc-mirror/gcc/commit/c1b7008c95f97dd7c11997e7be7be7b58d113db0

This is incorrect, and results in the unfortunately-named w32api libuuid.a being found instead of the completely unrelated *NIX libuuid (which is what *NIX software expects to find).

Linking from /usr/lib/w32api is handled in binutils, and this is the fix that my cygwin cross-toolchains are using to support sysroots:

https://github.com/cygwinports/cygwin32-binutils/blob/master/01-w32api-sysroot.patch

Please revert r227962.

--
Yaakov

--
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]