Summary: | Fine grained CFLAGS control. | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Jose Ildefonso Camargo Tolosa <ildefonso_camargo> |
Component: | Enhancement/Feature Requests | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | solar |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jose Ildefonso Camargo Tolosa
2005-09-07 17:37:11 UTC
I think I don't like it, personally. Oft requested feature, rewrite will allow for it to be added; won't be added to stable though (imo). meanwhile echo $' if [ "${CATEGORY}/${PN}" == "dev-util/diffball" ]; then export CFLAGS="the-cflags" export CXXFLAGS=${CFLAGS} fi ' >> /etc/portage/bashrc Will accomplish what you want. Personally, I'd suggest hunting for solar's bashrc; it's hella cleaner then the trick I mentioned above, gives you a fair amount more control (using bashrc as effectively indirection to load up custom bashrc's dependant on the cat/pkg). http://dev.gentoo.org/~solar/portage_misc/bashrc Example usage of CAT and CAT/PN (atoms are not supported) http://dev.gentoo.org/~solar/portage_misc/package.cflags Comment out the bashrc.autopatch at the end of the bashrc or snag the http://dev.gentoo.org/~solar/portage_misc/bashrc.autopatch Reopening for duping. |