bug-libtool
[Top][All Lists]
Advanced

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

Re: BUG: library type search order


From: Peter O'Gorman
Subject: Re: BUG: library type search order
Date: Wed, 04 Feb 2004 14:00:07 +0900
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Scott James Remnant wrote:
| Before replying, I tested it myself with 1.5.2 and it does indeed still
| fail ...  I guess Ben's patch somewhere along the line has broken again?
|

Bugger!

Does this fix it for you (it seems to work for me on darwin)?

Peter
- --
Peter O'Gorman - http://www.pogma.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQCVAwUBQCB8VbiDAg3OZTLPAQL2YAQAutUYLcJIgav3QNEaFKmQDnxg0y5WPhvW
M9wxuA3wEvw7bph6L9MaPyFdKtJjFIta6tOu2md40lA62SJkSjDQgWydhFHQevuC
eYJbbvif8l4YMi6Wm27Mjl8mJ0QAQJ3F47xHI2B95UV/04bsPh2Z0izoLa7hT/U2
5tXp/Chv6gs=
=VlbT
-----END PGP SIGNATURE-----
Index: ChangeLog
2004-02-04  Peter O'Gorman  <address@hidden>

        * ltmain.in: eval the standard shared library extension early
        so we can use it later. Use this to ensure that we use the first
        library in the path, not the first .la. Bug from Markus Diesmann
        <address@hidden>.

from  Scott James Remnant  <address@hidden>
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.334.2.21
diff -u -3 -p -u -r1.334.2.21 ltmain.in
--- ltmain.in 3 Feb 2004 21:59:38 -0000 1.334.2.21
+++ ltmain.in 4 Feb 2004 04:57:12 -0000
@@ -114,7 +114,7 @@ show_help=
 execute_dlfiles=
 lo2o="s/\\.lo\$/.${objext}/"
 o2lo="s/\\.${objext}\$/.lo/"
-
+eval std_shared_ext=\"$shrext\"
 #####################################
 # Shell function definitions:
 # This seems to be the best place for them
@@ -1860,7 +1860,7 @@ EOF
          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
-           for search_ext in .la $shrext .so .a; do
+           for search_ext in .la $std_shared_ext .so .a; do
              # Search the libtool library
              lib="$searchdir/lib${name}${search_ext}"
              if test -f "$lib"; then

reply via email to

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