[buildscript.run] env = { OPT_LEVEL = "2" } # Honour the build script's own linking directives, which buck2 drops by # default. It compiles aws-lc's C into `libaws_lc_0_43_0_crypto.a` in OUT_DIR # and emits `cargo:rustc-link-lib` and `cargo:rustc-link-search` to have it # linked; without these two the flags file came out as `--cfg=universal` alone # and the archive sat on disk unreferenced, leaving 129 `aws_lc_0_43_0_*` # symbols undefined in every buck2-built libjoltmoq.so. # # Nothing caught that for as long as nothing loaded one. Undefined symbols are # legal in a cdylib, and `--no-undefined` was only ever on libjoltapp's own # link, which is a different object. The phone is the first consumer to dlopen # it, and there it fails outright on `aws_lc_0_43_0_EVP_PKEY_free`. rustc_link_lib = true rustc_link_search = true