Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CFLAGS Specific to one Ebuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Kenji Miyamoto
Veteran
Veteran


Joined: 28 May 2005
Posts: 1452
Location: Looking over your shoulder.

PostPosted: Fri Aug 11, 2006 1:35 am    Post subject: CFLAGS Specific to one Ebuild Reply with quote

Is it possible to set CFLAGS or CXXFLAGS for a specific Ebuild, rather than for the entire system or one emerge?
_________________
[ Kawa-kun, new and improved!! ]

Alex Libman seems to be more of an anarchist than a libertarian.
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Fri Aug 11, 2006 5:45 am    Post subject: Reply with quote

If you mean setting CFLAGS in an ebuild, that is certainly possible as several packages do so presently. If, on the other hand, you mean setting CFLAGS to be used for a given ebuild in some general and user configurable way outside of the ebuild, about the closest thing I know of would be to make an overlay and have the CFLAGS specified in an otherwise cloned ebuild.
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Fri Aug 11, 2006 7:10 am    Post subject: Reply with quote

Assuming you want to set CFLAGS="blah blih blouh -full-speed-on" then you can do this

Code:
mkdirhier /etc/portage/env/category
echo 'CFLAGS="blah blih blouh -full-speed-on"' >> /etc/portage/env/category/packagename


Note this is not restrictive to CFLAGS.

for example (for this tip that you can find in that thread: Get aMSN to use anti-aliased fonts (with ebuilds): :
Code:
for pkg in {dev-lang/tk,dev-lang/tcl,net-im/amsn} ; do mkdirhier /etc/portage/env/${pkg%/*} ; echo "EXTRA_ECONF=\"--enable-xft\"" >> /etc/portage/env/$pkg ; done
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Fri Aug 11, 2006 7:31 am    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads.

See https://forums.gentoo.org/viewtopic-t-280748-highlight-cflags.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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