[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: libtool speedup hack problem
From: Szombathelyi "György" <gyurco () freemail ! hu>
Date: 2004-06-26 13:52:02
Message-ID: 200406261552.02836.gyurco () freemail ! hu
[Download RAW message or body]
____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
Probald ki most! http://www.freestart.hu
kedd 22 június 2004 06:36 de dátummal Michael Pyne ezt írta:
> Hi all,
>
> After reading about a patch to the build system libtool script to enable
> the LDFLAGS=-Wl,--as-needed command to work, I added it to my build
> routine, and it's worked well for me so far.
>
> However, recently I got an error starting up KBugBuster that seems to have
> been caused by that, and I was wondering if anyone else has received that,
> or knows any workarounds. I suspect an error in binutils because the
> problem was solved by resetting LDFLAGS, but I figure it's worth a shot.
>
> The specific error was a relocation error trying to find
> _ZTV14KBookmarkOwner, which is the vtable for KBookmarkOwner according to
> c++filt.
>
OK, as I wrote before, I didn't notice the problem - until I tried to start
KBugBuster. It is interesting if I put all the static libraries in the
Makefile.am before the shared libraries, it works. So attached a patch which
work-arounds the problem. The $(LIB_KIO) addition is for extra safety, the
solution is changing the order of the libs.
I think It is definietely a linker bug.
["kbb-make.diff" (text/x-diff)]
--- Makefile.am 2004-06-26 15:40:42.761149872 +0200
+++ Makefile.am~ 2004-06-26 15:32:20.000000000 +0200
@@ -9,8 +9,8 @@
bin_PROGRAMS = kbugbuster
kbugbuster_SOURCES = main.cpp
-kbugbuster_LDADD = $(LIB_KHTML) -lkutils gui/libkbbmainwindow.la \
- backend/libkbbbackend.la
+kbugbuster_LDADD = -lkutils gui/libkbbmainwindow.la \
+ backend/libkbbbackend.la $(LIB_KHTML) $(LIB_KIO)
kbugbuster_LDFLAGS = $(all_libraries) $(KDE_RPATH)
xdg_apps_DATA = kbugbuster.desktop
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic