Closed mccarverone closed 2 years ago
Can you paste the whole make.conf
and build.log
files?
What seems to happen is *FLAGS
and LDFLAGS
being mixed up. I don't know how this ended up happening but I know of nothing in particular in this overlay that could cause it.
Thanks for your reply but as it turned out it was an issue with "portage-bashrc-mv" from mv overlay. This behaviour was intended and preventable by setting NOCADD=1
during emerge.
When trying to build with flag '-flto=8' included in make.conf it fails at compile time.
LDFLAGS look suspicious:
When I remove '-flto' the LDFLAGS variable changes
LDFLAGS='-Wl,-O1 -Wl,--as-needed'
and everything builds perfectly.Of course tainting LDFLAGS will confuse the compiler, this is from the build log:
Maybe something is there with flags handling in dlang.eclass but I couldn't pinpoint the issue.