Hi Peter, all, * quoting myself: > * Simon Josefsson wrote on Thu, Mar 29, 2007 at 12:17:32PM CEST: > > > > /bin/sh ../libtool --tag=CC --mode=link gcc -DLIBSSH2_DARWIN -I/ > > usr/include -I/usr/include -no-install -L/usr/lib -lcrypto -L/usr/lib > > -lz -o simple simple.o ../src/libssh2.la > > mkdir .libs > > gcc -DLIBSSH2_DARWIN -I/usr/include -I/usr/include -o simple > > simple.o -L/usr/lib ../src/.libs/libssh2.dylib -lcrypto -lz > > make check-TESTS > > dyld: Library not loaded: /usr/local/lib/libssh2.1.dylib > > Referenced from: /Users/daniel/Desktop/libssh2/tests/./simple > > Reason: image not found > > FAIL: simple > > Looks like a Darwin-related (hint, hint! ;-) bug to me.
Do I understand correctly that Darwin has no way to hardcode library paths (other than the ones given by -install-name)? OK to apply and backport? It fixes the stresstest failure exposed by my last patch. Cheers, Ralf * libltdl/config/ltmain.m4sh (func_mode_link) <-no-install> [ darwin ]: Treat like `-no-fast-install', as we cannot hardcode. Report by Simon Josefsson. Index: libltdl/config/ltmain.m4sh =================================================================== RCS file: /cvsroot/libtool/libtool/libltdl/config/ltmain.m4sh,v retrieving revision 1.71 diff -u -r1.71 ltmain.m4sh --- libltdl/config/ltmain.m4sh 25 Mar 2007 12:12:42 -0000 1.71 +++ libltdl/config/ltmain.m4sh 3 Apr 2007 21:43:29 -0000 @@ -2770,9 +2770,9 @@ -no-install) case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*) # The PATH hackery in wrapper scripts is required on Windows - # in order for the loader to find any dlls it needs. + # and Darwin in order for the loader to find any dlls it needs. func_warning "\`-no-install' is ignored for $host" func_warning "assuming \`-no-fast-install' instead" fast_install=no _______________________________________________ Bug-libtool mailing list Bug-libtool@gnu.org http://lists.gnu.org/mailman/listinfo/bug-libtool