https://bugzilla.novell.com/show_bug.cgi?id=690952
https://bugzilla.novell.com/show_bug.cgi?id=690952#c7
--- Comment #7 from Stanislav Brabec 2011-05-13 18:20:10 CEST ---
I guess that I have a simple reproducer. It looks eithwe like a disability of
libtool or improper use of it. It is reproducible even with -as-needed.
Link one library setting linker RPATH. Use library to build a binary. Even if
the binary does not use wxWidgets directly, linker option is lost and binary is
broken.
codeblocks does something even more complicated: Link one library setting
linker RPATH. Use library to build another library. Use this library as a
module in a binary. This is broken as well.
------ empty-link.sh -----------------------
#!/bin/sh
libtool --tag=CC --mode=compile gcc -shared emptylib.c -c -o emptylib.lo
libtool --tag=CC --mode=link gcc -shared -rpath /usr/lib64
-Wl,-rpath,/usr/lib64/wx-2.8-wxcontainer -L/usr/lib64/wx-2.8-wxcontainer
-lwx_gtk2u_aui-2.8 emptylib.lo -o libempty.la
ldd .libs/libempty.so
echo "You see it is OK."
#libtool --tag=CC --mode=link gcc -shared -rpath /usr/lib64 libempty.la -o
libempty2.la
#ldd .libs/libempty2.so
#echo "You see it look suspicious."
#libtool --tag=CC --mode=compile gcc empty.c -c -o empty.o
libtool --tag=CC --mode=link gcc empty.o libempty.la -o empty
#libtool --tag=CC --mode=link gcc empty.o libempty2.la -o empty
ldd empty
LD_LIBRARY_PATH=$PWD/.libs ldd .libs/empty
echo "And you see it is appparently broken."
/empty
------ emptylib.c -----------------------
int nothing(void)
{
return 0;
}
------ empty.c -----------------------
int main()
{
return 0;
}
-----------------------------
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.