On Tue, Oct 18, 2011 at 2:15 PM, Garrity, Christopher
<[email protected]> wrote:
>
> Is there a way to set cflags for just a single package inside the spec file?
> I don't need/want to override cflags for all packages, just one.
> net-ftp/tftp-hpa-5.1 is causing my netboot2 target to fail because of a bug
> related to -O2 and gcc-4.5.3 :(

Not in the spec file directly.

What I would do is set portage_confdir in the spec file, ie
portage_confdir: /directory/containing/etc/portage

And inside your confdir, set CFLAG exceptions as described here:
http://www.gentoo-wiki.info/CflagsExceptions

Let us know if that works for you.

Matt

Reply via email to