Hi, I'm trying to build an userspace program from source and finally stuck with
cc1plus: error: '-fno-fat-lto-objects' are supported only with linker plugin cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/local/bin/egcc -DCMAKE_CXX_COMPILER=/usr/local/bin/g++ -DCMAKE_CXX_FLAGS=-std=c++11 && make -j8 OpenBSD67-current with latest compilers from -current ports tree egcc-8.3.0p6 gcc-8.3.0p6 clang-8.0.1 llvm-10.0.1 cmake-3.17.2 I think it's the simplest way is to remove -fno-fat-lto-objects from all Makefiles. The same code is compiled on linux(Debian & Alpine) without any changes in LTO. It seems I can't use LTO at link time and hence no difference in binaries. binutils/ld has been rebuild from -current tree, no help. What can be missed? Any suggestions will help. Martin