In the Gentoo Wiki page for LTO, I'm confused why it recommends to add COMMON_FLAGS to LDFLAGS:
Code: Select all
LDFLAGS="${COMMON_FLAGS} ${LDFLAGS}"Is there a reason why "-march=native -O2 -pipe -flto" should be appended to LDFLAGS when LTO is enabled? Or is the advice on the LTO page outdated?The Gentoo developers have already set basic, safe LDFLAGS in the base profiles, so they do not need to be changed.
Thanks in advance.

