Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519462 - flag-o-matic.eclass - request to add -fplugin* to ALLOWED_FLAGS in setup-allowed-flags()
Summary: flag-o-matic.eclass - request to add -fplugin* to ALLOWED_FLAGS in setup-allo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-08 22:43 UTC by PaX Team
Modified: 2016-07-04 23:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description PaX Team 2014-08-08 22:43:39 UTC
when one wants to recompile the whole tree with a plugin the easiest way should be to add the necessary -fplugin* switches to CFLAGS. unfortunately setup-allowed-flags strips them away thus i'd like to request $subject. alternatively users should be able to easily extend this whitelist somehow as adding new switches to this list is quite tedious (overlay+forking the eclass).
Comment 1 PaX Team 2014-08-09 19:45:46 UTC
another issue is that test-flags-PROG in flag-o-matic.eclass will try each flag on its own which will not work for -fplugin-arg* as it's only valid with the corresponding -fplugin=* flag (and the order is important too but at least the test would preserve that much).
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2016-07-01 04:15:27 UTC
I added -fplugin*.  Sorry bout the wait, must have missed this one.

test-flags only handling one flag at a time is a known thing.  It's hard to special case all the flags that only make sense with another.
Comment 3 PaX Team 2016-07-04 23:17:41 UTC
thanks for the update. i wonder if test-flags could just be taught to not test -fplugin* at all and just add them to flags directly.