This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Using -flto in CXXFLAGS_FOR_TARGET
- From: "U.Mutlu" <um at mutluit dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 15 Jun 2018 11:31:48 +0200
- Subject: Using -flto in CXXFLAGS_FOR_TARGET
I tried to use -flto in CXXFLAGS_FOR_TARGET. It successfully built the compilers,
but later when trying to use the compilers, the linker reported an error about
something missing and aborted the linking.
Of course the rationale was to optimize the compiler itself.
So, the question is: does it not make any sense to use -flto for the build itself?
(Or should one specify -flto in some of the other config variables like
CXXFLAGS_FOR_BUILD and/or the ...FLAGS vars maybe?)
Thx