Skip to content

Can you add documentation for bugs/cases that necessitate "LDADD/CADD"? #19

@jiblime

Description

@jiblime

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions