libtool-patches
[Top][All Lists]
Advanced

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

Patch for gcc 3.1 + a MinGW fix


From: Bob Friesenhahn
Subject: Patch for gcc 3.1 + a MinGW fix
Date: Sun, 23 Jun 2002 10:52:12 -0500 (CDT)

The following libtool patch fixes two problems:

 o gcc 3.1 prepends a '=' in front of some directory names printed by
   -print-search-dirs.  This patch strips the '='.
 o Under MinGW, the test for Windows vs POSIX names was faulty because
   it assumed only upper case drive letters (bad guess).  This patch
   tests for both upper and lower case drive letters.

Bob

Index: ChangeLog
===================================================================
RCS file: /cvsroot/libtool/libtool/ChangeLog,v
retrieving revision 1.1119
diff -u -r1.1119 ChangeLog
--- ChangeLog   22 Jun 2002 14:47:23 -0000      1.1119
+++ ChangeLog   23 Jun 2002 15:43:47 -0000
@@ -1,3 +1,11 @@
+2002-06-23  Bob Friesenhahn  <address@hidden>
+
+       * libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Remove extraneous
+       '=' character which appears in gcc 3.1 -print-search-dirs output.
+       (AC_LIBTOOL_SYS_DYNAMIC_LINKER): For MinGW, handle both upper and
+       lower case drive letters when testing for Windows vs POSIX style
+       path output from -print-search-dirs output.
+
 2002-06-21  Gary V. Vaughan  <address@hidden>

        * libltdl/ltdl.c (foreach_dirinpath): Ensure that filename is '\0'
Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libtool.m4,v
retrieving revision 1.259
diff -u -r1.259 libtool.m4
--- libtool.m4  20 Jun 2002 06:58:38 -0000      1.259
+++ libtool.m4  23 Jun 2002 15:43:49 -0000
@@ -1003,7 +1003,7 @@
 dynamic_linker="$host_os ld.so"
 sys_lib_dlsearch_path_spec="/lib /usr/lib"
 if test "$GCC" = yes; then
-  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed 
-e "s/^libraries://"`
+  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed 
-e "s/^libraries://;s:=/:/:g"`
   if echo "$sys_lib_search_path_spec" | egrep ';' >/dev/null ; then
     # if the path contains ";" then we assume it to be the separator
     # otherwise default to the standard path separator (i.e. ":") - it is
@@ -1120,8 +1120,8 @@
     ;;
   yes,mingw*)
     library_names_spec='${libname}`echo ${release} | sed -e 
's/[[.]]/-/g'`${versuffix}.dll'
-    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | 
sed -e "s/^libraries://"`
-    if echo "$sys_lib_search_path_spec" | [egrep ';[C-Z]:/' >/dev/null]; then
+    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | 
sed -e "s/^libraries://;s:=/:/:g"`
+    if echo "$sys_lib_search_path_spec" | [egrep ';[c-zC-Z]:/' >/dev/null]; 
then
       # It is most probably a Windows format PATH printed by
       # mingw gcc, but we are running on Cygwin. Gcc prints its search
       # path with ; separators, and with drive letters. We can handle the




reply via email to

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