-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Hello, thank you for the amazing tool. I've been extending its usage for myself and am going through the documentation to better understand it.
Regarding NOCADD
:
NOCADD:
For -flto, it is necessary to add CFLAGS and CXXFLAGS to LDFLAGS.
In rare circumstances, this can cause trouble, so we allow optionally
to deactivate this feature.
Can you link bug reports or name packages that cause this to be a necessity? I would like to understand the problem more, and see if it is still a requirement.
I have tested NOCADD=1 emerge -1 dev-qt/qtsql
and while it was configured with LDFLAGS='-Wl,-O1 -Wl,--as-needed'
, emerge --info dev-qt/qtsql
actually does not show LDFLAGS
having been set for the process (although this remedied itself with the LDFLAGS having been appended to *FLAGS).
Is this an -flto
specific problem?
As an aside, does the ReplaceFlags function only apply to user set *FLAGS, or is there a way to make it replace all flags during compilation, similar to how the flag-o-matic.eclass
works?