[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Libtool fails to build working binary when -no-install is used
From: |
Ralf Wildenhues |
Subject: |
Re: Libtool fails to build working binary when -no-install is used |
Date: |
Thu, 29 Mar 2007 18:20:52 +0200 |
User-agent: |
Mutt/1.5.14 (2007-03-22) |
Hi Simon,
Thanks for the bug report.
* 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.
Note to self: expose -no-install in testsuite ((also) in stresstest.at
as optional additional flag to `main' and `dlself'). No wonder it
doesn't work: it's not covered in the testsuite. :-/
I think you should be able to work around it by adding
-R ../src
to the link flags for `simple' (untested, please try it! self: also put
in testsuite), that should be more efficient than dropping -no-install
and thus having the wrapper everywhere. Please also note that on w32
you'll get (a warning and) a wrapper regardless, as there's no way to
hardcode there.
Cheers,
Ralf