gecko-dev/js
Nick Alexander d56eb2a314 Bug 1489443 - Set GCC_USE_GNU_LD based on linker kind. r=froydnj
The desired outcome of this change is that we'll set
-Wl,--version-script based on linker kind and not on the output of
$LINKER -v.

This is a cheap way to address a simple problem that has a complicated
ideal solution. The underlying issue is that in some situations, when
targeting Android, a macOS system ld is interrogated to determine if
a cross-compiling linker "is GNU ld" and a particular linker feature
is set in that situation. The macOS system ld doesn't pass the "is
GNU ld" test, and the linker feature isn't set; that causes link
failures, even though the actual linker has nothing to do with the
system ld.

The ideal solution is to test for linker capabilities dynamically. We
do a lot of that in old-configure.in, and we don't do any of that in
toolchain.configure. Rather than start testing in
toolchain.configure, we hard-code: a cheap solution to the immediate
problem.

MinGW suffers somewhat from the opposite problem: the linker "is GNU
ld" (compatible), but the linker checks don't happen at all. We hard-code
for MinGW based on the C compiler instead.

Differential Revision: https://phabricator.services.mozilla.com/D8471

--HG--
extra : moz-landing-system : lando
2018-10-17 19:46:03 +00:00
..
ductwork/debugger Bug 1489147 - Remove the XPCOM component registration for nsXPConnect; r=mccr8 2018-09-06 16:39:35 -04:00
examples
ipc Bug 1490632 - Always use braces for if/for/while statements in js/ipc. r=evilpie 2018-09-12 20:04:14 +00:00
public Backed out changeset c7b32ffa822e (bug 1321014) on a CLOSED TREE 2018-10-16 14:35:48 -07:00
rust Bug 1491137 - Rename JS::CompileFunction that takes const char*/size_t for function text to JS::CompileFunctionUtf8 that asserts consistent |options.utf8|. r=jandem 2018-09-17 11:24:41 -07:00
src Bug 1489443 - Set GCC_USE_GNU_LD based on linker kind. r=froydnj 2018-10-17 19:46:03 +00:00
xpconnect Bug 1498404 - Fix some errors in manifests r=froydnj 2018-10-16 13:26:23 +00:00
app.mozbuild
ffi.configure
moz.build
moz.configure Bug 1497336: Remove Cranelift Win32 static analysis workaround; r=froydnj 2018-10-11 14:52:39 +00:00