kmyunittest.shell doesn't use local libs

Thiago Macieira thiago at kde.org
Sat Dec 15 09:53:17 CET 2007


Alexander Neundorf wrote:
>> Or in gcc's specs. That's how I turn it on by default on my system.
>> It's easy to do in any installation and doesn't require recompilation
>> of anything.
>
>How exactly ?

The procedure is:
1) find the gcc specs file:
$ gcc -v 
Reading specs from /usr/lib/gcc/i586-mandriva-linux-gnu/4.1.2/specs

If it says:
$ gcc -v
Using built-in specs.

Then do:
$ gcc -dumpspecs > /usr/lib/gcc/i586-mandriva-linux-gnu/4.1.2/specs

Note: the directory already exists. You should adapt to your 
distribution's configuration.

2) edit the specs file and add --enable-new-dtags to the link_command 
variable.
My truncated diff looks like:
 *link_command:
-%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:    %(linker) %l %{pie:-pie} %X
+%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:
%{!S:    %(linker) %l --enable-new-dtags %{pie:-pie} %X

>> >It's inside a "if linux and gcc" block already. I guess the only
>> > question is if anyone could have an old system where this wouldn't
>> > be supported, but if "9 years" is correct then I guess such linux
>> > systems would have other trouble with compiling kde4 anyway, right?
>> > (like gcc itself too old).
>>
>> Agreed.
>>
>> But this is again a modification of the global CMake flags. We should
>> only be applying this to KDE builds. But, since we haven't done those
>> changes either, your patch won't hurt now.
>
>I have the feeling that you see some issue here. Which ?

If I build a KDE library with KDE4_ADD_LIBRARY and I build a non-KDE 
library with ADD_LIBRARY in the same CMake tree (doesn't have to be the 
same CMakeLists.txt), the KDE settings should not interfere. That 
includes compiler and linker flags.


-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20071215/e9b64818/attachment.pgp 


More information about the Kde-buildsystem mailing list