| View previous topic :: View next topic |
| Author |
Message |
Kenji Miyamoto Veteran


Joined: 28 May 2005 Posts: 1452 Location: Looking over your shoulder.
|
Posted: Fri Aug 11, 2006 1:35 am Post subject: CFLAGS Specific to one Ebuild |
|
|
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 |
|
 |
desultory Administrator

Joined: 04 Nov 2005 Posts: 7479
|
Posted: Fri Aug 11, 2006 5:45 am Post subject: |
|
|
| 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 |
|
 |
truc Advocate


Joined: 25 Jul 2005 Posts: 3188
|
Posted: Fri Aug 11, 2006 7:10 am Post subject: |
|
|
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 |
|
 |
mark_alec Bodhisattva


Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
|
| Back to top |
|
 |
|