KDE/kdevelop/languages/cpp/tests
Christophe Giboudeaux
cgiboudeaux at gmail.com
Sat Jul 18 13:03:02 CEST 2009
On Saturday 18 July 2009 11:50:43 Andreas Pakulat wrote:
> On 18.07.09 03:01:31, Aleix Pol wrote:
> > hi,
> > I've hit a problem when compiling a KDevelop test using gold. If we use
> > the usual ld it works fine but with gold it requires all the libraries to
> > be specified. As for what Andreas told me, it looks like linking against
> > the language would be enough to get the links for the shell and project
> > (since language links both of them), but my host seems to disagree.
>
> Actually the other way around, shell links against language and project,
> so linking the test against shell should be enough due to the
> link-interface-libs.
>
> A while back I've posted a simple cmake project that tries to do
> something similar, but Andreas Hartmetz (the one who did use gold back
> then and had problems with kdevelop) didn't try it yet with gold.
>
> See: http://lists.kde.org/?l=kde-buildsystem&m=124527551109094&w=2
> Would be cool if you could test that, if it works, we have a problem
> somewhere in kdevplatform, though I'm not sure where :(
>
Unless my installation is broken here are the results :
--> gcc -v
gcc version 4.4.0 [gcc-4_4-branch revision 149173] (SUSE Linux)
`--> ld -v
GNU gold (GNU Binutils; openSUSE Factory 2.19.51.20090527-9.18) 1.9
Linking C executable app
cd /home/krop/kde/src/testcmake_link_interface/build/executable &&
/usr/bin/cmake -E cmake_link_script CMakeFiles/app.dir/link.txt --verbose=1
/home/krop/bin/gcc -Wall -Wextra -pedantic -fPIC CMakeFiles/app.dir/main.o
-o app -rdynamic ../baz/libbaz.so ../bar/libbar.so ../foo/libfoo.so
remake[2]: Leaving directory
`/home/krop/kde/src/testcmake_link_interface/build'
/usr/bin/cmake -E cmake_progress_report
/home/krop/kde/src/testcmake_link_interface/build/CMakeFiles 4
[100%] Built target app
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20090718/f4c155e3/attachment.sig
More information about the Kde-buildsystem
mailing list