libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Patch] (Cygwin) reorder entries in sys_lib_search_path_spec


From: Max Bowsher
Subject: [Patch] (Cygwin) reorder entries in sys_lib_search_path_spec
Date: Mon, 26 May 2003 16:25:16 +0100

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


Max.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]