Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How 2 set ld.bfd or ld.gold at package level? [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
CaptainBlood
Veteran
Veteran


Joined: 24 Jan 2010
Posts: 1377

PostPosted: Fri Mar 17, 2017 12:37 pm    Post subject: How 2 set ld.bfd or ld.gold at package level? [Solved] Reply with quote

Hi,
I've been using portage.env 4 a while now.
Nevertheless I don"t understand how to set ld.bfd or ld.gold at package level.
I'd like to set it for packages that are reluctant to build with my default linker, ie ld.gold.

Thks 4 ur attention, interest & support.


Last edited by CaptainBlood on Tue Jul 11, 2017 3:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 23253
Location: here

PostPosted: Fri Mar 17, 2017 12:47 pm    Post subject: Reply with quote

Try this
Code:
# echo 'LDFLAGS="${LDFLAGS} -Wl,-fuse-ld=bfd"' >> /etc/portage/env/force-bfd.conf
# echo 'categoty/package force-bfd.conf' >> /etc/portage/package.env   

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
trubicoid
n00b
n00b


Joined: 04 Aug 2009
Posts: 56

PostPosted: Sun May 14, 2017 8:07 pm    Post subject: Reply with quote

is LDFLAGS the preferred way? it can also be set in CFLAGS I think:
Code:
CFLAGS="${CFLAGS} -fuse-ld=bfd"
Back to top
View user's profile Send private message
CaptainBlood
Veteran
Veteran


Joined: 24 Jan 2010
Posts: 1377

PostPosted: Sun Jun 04, 2017 4:23 pm    Post subject: Reply with quote

NeddySeagoon says the same @https://forums.gentoo.org/viewtopic-p-8076064.html#8076064
I wonder still.
Thks 4 ur attention, interest and support.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum