finding libraries for programs with doing clean builds
Thiago Macieira
thiago at kde.org
Tue Jan 10 18:09:46 CET 2006
Matt Rogers wrote:
>I'm quite confused about which cases would cause LD_LIBRARY_PATH to not
>work, since kconfig_compiler ran for me after I had set LD_LIBRARY_PATH.
>I guess this just means that my system isn't broken? ;)
This test will tell you if LD_LIBRARY_PATH works with a given program:
$ objdump -p $KDEDIR/bin/konqueror | grep PATH
RPATH /usr/local/kde3-r487700/lib:/home/thiago/programs/src/kde3/qt-copy/lib:/usr/X11R6/lib
RUNPATH /usr/local/kde3-r487700/lib:/home/thiago/programs/src/kde3/qt-copy/lib:/usr/X11R6/lib
If neither RPATH or RUNPATH are present, LD_LIBRARY_PATH works. If both
are present, it works. If RUNPATH is alone, it works.
If RPATH is alone, it will not work. This is the standard KDE build on
Linux. You can change it by:
1) --disable-rpath
or
2) --enable-new-ldflags
BTW, now that I think of it, I think of it, I guess I remember why libtool
had a problem in the first place. It wasn't because of
-Wl,--enable-new-ldtags. It was because of -Wl,--as-needed, which is
turned on along with it.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
5. Swa he géanhwearf tó timbran, and hwonne he cóm, lá! Unix cwæð "Hello,
World". Ǽfre ǽghwilc wæs glæd and seo woruld wæs fréo.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060110/e8541f5e/attachment.pgp
More information about the Kde-buildsystem
mailing list