[prev in list] [next in list] [prev in thread] [next in thread] 

List:       orocos-dev
Subject:    [Orocos-Dev] GNU gold
From:       orocos () dpinol ! com (orocos at dpinol ! com)
Date:       2009-11-10 13:14:34
Message-ID: listhandler=1&site=www.orocos.org&nid=1631&pid=5380&cid=5381&uid=926&tid=54&539c7bdb258ade6ce051eb9f36a92283 () www ! orocos ! org
[Download RAW message or body]

[quote=peter]On Tue, Nov 10, 2009 at 13:27, <orocos at dpinol.com> wrote:
> 
> [quote=peter]I just
> pushed the necessary changes to support this linker. It's a bit pickier on
> the -l flags you provide (you need to provide some more than with old ld).
> The orocos-rtt-corba .pc file needed to be updated.
> [/quote]
> 
> How did you manage cmake to use gold? Changing CMAKE_LINKER makes no effect. \
> Actually it always links our projects with c++, whether CMAKE_LINKER is set to ld \
> or gold. 
> On google I just found http://www.kwwidgets.org/Bug/bug_view_page.php?bug_id=8065 , \
> which states that CMAKE_LINKER is not really usable

gold is installed as 'ld', so cmake picks it up automatically. Try ld
--version and you should see 'GNU gold' on the first line.

Peter
[/quote]

In my case ld is not replaced by gold-binutils rpm from suse gcc repository
<pre>
la /usr/bin/gold
-rwxr-xr-x 1 root root 1501624 2009-10-23 11:39 /usr/bin/gold

la /usr/bin/ld
-rwxr-xr-x 1 root root 552392 2009-10-23 11:39 /usr/bin/ld

/usr/bin/ld --version
GNU ld (GNU Binutils; devel:gcc / openSUSE_11.1) 2.20.51.20091013-21.1
Copyright 2009 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

/usr/bin/gold --version
GNU gold (GNU Binutils; devel:gcc / openSUSE_11.1 2.20.51.20091013-21.1) 1.9
Copyright 2008 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

rpm -qa | grep gold
binutils-gold-2.20.51-21.1
</pre>

Old gcc --with-ld flag does not work. I manually replaced ld with gold and I got a 2 \
fold link time performance. Excellent! 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic