[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libtool.m4-mingw-lib-searchdirs-01.patch
From: |
Guido Draheim |
Subject: |
libtool.m4-mingw-lib-searchdirs-01.patch |
Date: |
Sun, 22 Jul 2001 23:10:55 +0200 |
see libtool-ML under subject:
mingw32 cross-compile: sys_lib_search_path setting insuffient
this patch does a tr-PATH_SEPARATOR-to-space.
The patch is over current libtool-cvs, and has been tested
to fix my problem - libs installed in gcc's sys_lib are
now found as a file as is needed for filemagic check w.r.t
-no-undefined.
cheers, guido (not subscribed to address@hidden)
--- libtool.m4.orig Sun Jul 22 22:16:21 2001
+++ libtool.m4 Sun Jul 22 23:02:17 2001
@@ -1052,6 +1052,17 @@
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://" -e "s/;/ /g"`
+ if test "_$PATH_SEPARATOR" = "_:" ; then
+ sys_lib_search_path_spec=`echo $sys_lib_search_path_spec | sed -e 's/:/
/g'`
+ elif test "_$PATH_SEPARATOR" = "_;" ; then
+ sys_lib_search_path_spec=`echo $sys_lib_search_path_spec | sed -e 's/;/
/g'`
+ else
+ if test "x$sys_lib_search_path_spec" != `echo
x$sys_lib_search_path_spec | sed -e 's/;/ /'` ; then
+ AC_MSG_ERROR(PATH_SEPARATOR not set, but $CC -print-search-dirs
contains semicolons)
+ elif test "x$sys_lib_search_path_spec" != `echo
x$sys_lib_search_path_spec | sed -e 's/:/ /'` ; then
+ AC_MSG_ERROR(PATH_SEPARATOR not set, but $CC -print-search-dirs
contains colons)
+ fi
+ fi
;;
yes,pw32*)
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo
${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
- libtool.m4-mingw-lib-searchdirs-01.patch,
Guido Draheim <=