Building gcc 12 cross-compiler with --enable-lto on FreeBSD fails
Chris Johns
chris@contemporary.net.au
Wed Jun 15 09:25:18 GMT 2022
Hi,
I am trying to build a cross-compiler on FreeBSD with --enable-lto because a
chip vendor is using it when building controller software that is part of a system.
The build I am using symlinks gmp, mpfr etc as source so they are built as part
of the gcc build.
The mpfr package is reporting ...
build/mpfr/config.log:configure:17408: error: Link Time Optimisation is not
supported (see config.log for details).
Should the enable option be passed to these packages?
I have assumed the enable option for LTO is for the cross compiler and not the
host gcc?
Thanks
Chris
More information about the Gcc
mailing list