This is the mail archive of the
cygwin
mailing list for the Cygwin project.
gcc: link scan order of /usr/lib and /usr/lib/w32api
- From: Yaakov Selkowitz <yselkowitz at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 25 Feb 2016 11:44:43 -0600
- Subject: gcc: link scan order of /usr/lib and /usr/lib/w32api
- Authentication-results: sourceware.org; auth=none
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