--- libtool.m4.orig 2003-05-26 11:25:40.000000000 +0100
+++ libtool.m4 2003-05-26 11:44:29.000000000 +0100
@@ -1217,7 +1217,7 @@
cygwin*)
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release}
| $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
- sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
;;
mingw*)
# MinGW DLLs use traditional 'lib' prefix
This patch reorders Cygwin's sys_lib_search_path_spec:
On Cygwin /usr/lib and /lib, by default, refer to the same directory. Most
libtool libraries are installed to /usr/lib, and so that is the path the .la
file contains.
However, as /lib occurs first in the search path, libtool finds them under
that name first, and then warns that the library has been moved from its
original installation, because it doesn't know that /usr/lib == /lib.
With the patch, libtool finds libraries via /usr/lib, and does not complain.