Re: Accepted sdl-image1.2 1.2.2-1 (i386 source)
>> Joseph Carter <knghtbrd@bluecherry.net> writes:
> You can thank libtool.
Uh?
$ echo 'foo(){}' > a.c
$ echo 'bar(){}' > b.c
$ cc -shared -Wl,-soname,libfoo.so -o libfoo.so a.c
$ cc -shared -Wl,-soname,libbar.so -o libbar.so b.c -L. -lfoo
$ rm libfoo.so
$ echo 'main(){}' > main.c
$ cc -o main -L. -lbar main.c
/usr/bin/ld: warning: libfoo.so, needed by ./libbar.so, not found (try using -rpath or -rpath-link)
ignoring the repugnant and non ANSI conformant C, I did nothing wrong.
The linker is emitting a warning because it can't find libfoo.so needed
by libbar.so, which is what I said before. You can't link a program,
without warnings, against a library that links against other libraries
if the other libraries' .so symlinks are not present.
--
Marcelo
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: