mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
56ca1ef0e7
When running e.g. check_symbols with extra flags like when checking for vpx_codec_dec_init_ver when building against system libvpx, in some configurations, the test can fail when the library flags (-l) appear before the source file path. The reason is that in some configurations, the compiler passes --as-needed to the linker before both the flags and the object file path, and the object file path is in the same position as the source file path was. With --as-needed, -l flags are dropped if the library wasn't needed for any of the linked code that appears *before* the flag. So linking with `--as-needed -lfoo foo.o`, is equivalent to linking with `foo.o` only in practice, while `--as-needed foo.o -lfoo` is equivalent to `foo.o -lfoo`. Differential Revision: https://phabricator.services.mozilla.com/D71456 |
||
---|---|---|
.. | ||
android-ndk.configure | ||
android-sdk.configure | ||
arm.configure | ||
bindgen.configure | ||
checks.configure | ||
compile-checks.configure | ||
compilers-util.configure | ||
flags.configure | ||
headers.configure | ||
init.configure | ||
java.configure | ||
keyfiles.configure | ||
lto-pgo.configure | ||
memory.configure | ||
node.configure | ||
old.configure | ||
pkg.configure | ||
rust.configure | ||
toolchain.configure | ||
tup.configure | ||
util.configure | ||
warnings.configure | ||
windows.configure |