From: Kurt Zeilenga Date: Tue, 20 Apr 2004 05:16:41 +0000 (+0000) Subject: HACK: ignore libXXX.la files when using -lXXX X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~467 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bf3497cca8395688a2618cb1990fff02001370b0;p=openldap HACK: ignore libXXX.la files when using -lXXX Should make -static behave as expected --- diff --git a/build/ltmain.sh b/build/ltmain.sh index 9070f5413a..c654e165a5 100755 --- a/build/ltmain.sh +++ b/build/ltmain.sh @@ -1420,14 +1420,14 @@ compiler." continue fi name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do - # Search the libtool library - lib="$searchdir/lib${name}.la" - if test -f "$lib"; then - found=yes - break - fi - done +# for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do +# # Search the libtool library +# lib="$searchdir/lib${name}.la" +# if test -f "$lib"; then +# found=yes +# break +# fi +# done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then