gentooLTO
gentooLTO copied to clipboard
dev-util/dub::dlang: requires NOCADD=1
dev-util/dub is from dlang overlay. It takes NOCADD=1 otherwise portage-bashrc-mv fills up LDFLAGS with CFLAGS that spill over to D compiler and break the build.
From portage-bashrc-mv docs:
NOCADD If this variable is false and some of CFLAGS, CXXFLAGS, or LDFLAGS contains -flto* then the CFLAGS and CXXFLAGS variables finally calculated will be added to the LDFLAGS.