Closed potsrevennil closed 4 days ago
Currently in nix shell, the build system won't properly linked if -flto is set.
-flto
This is due to that nix gcc comes with lto library, binutils like ar doesn't seem to properly configured regarding this.
gcc
ar
The easiest workaround to make -flto work is therefore to avoid building libraries, let gcc take over everything.
Namespace checking needed to be updated as well, due to the new build system compiles fips202 artifact to test/build/mlkemxxx/fips202 now.
test/build/mlkemxxx/fips202
Currently in nix shell, the build system won't properly linked if
-flto
is set.This is due to that nix
gcc
comes with lto library, binutils likear
doesn't seem to properly configured regarding this.The easiest workaround to make
-flto
work is therefore to avoid building libraries, letgcc
take over everything.Namespace checking needed to be updated as well, due to the new build system compiles fips202 artifact to
test/build/mlkemxxx/fips202
now.