gecko-dev/build/autoconf
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
..
acwinpaths.m4
alloc.m4 Bug 1262155 - Use moz.build instead of libffi's build system. r=ted,glandium 2016-08-08 16:58:54 -07:00
altoptions.m4 Bug 1253203 - Move parts of configure.py into sandboxed moz.configure. r=nalexander,r=chmanchester 2016-03-08 15:41:32 +09:00
android.m4 Bug 1480834 - 2. Add x86-64 build support; r=nalexander 2018-09-13 12:09:25 -04:00
arch.m4 Bug 1465731 - Fix armv6 build. r=glandiumd 2018-07-16 03:18:00 +03:00
clang-plugin.m4 Bug 1427808 - Fix libs for clang-plugin build. r=froydnj 2018-10-12 07:14:00 -04:00
codeset.m4 bug 1239083 - use moz.build files to build ICU. r=glandium,waldo 2016-04-05 10:09:12 -04:00
compiler-opts.m4 Bug 1397263 - move AS checks to toolchain.configure; r=glandium 2018-10-03 20:29:29 -04:00
config.guess Bug 1260622 - Refresh config.guess and config.sub from upstream. r=ted 2016-04-01 09:43:26 +09:00
config.status.m4 Bug 1490463 - part 3 - remove BUILD_TOOLS from config.mk; r=mshal 2018-09-18 16:02:22 -04:00
config.sub Bug 1260622 - Refresh config.guess and config.sub from upstream. r=ted 2016-04-01 09:43:26 +09:00
expandlibs.m4 Bug 1489205 In expandlibs.m4, use the Windows form only when we are compiling on Windows r=glandium 2018-09-11 03:20:06 +00:00
frameptr.m4 Bug 1491236 - Always enable unwind tables on *nix r=froydnj 2018-09-18 21:48:28 +00:00
hooks.m4 Bug 1257516 - Handle outputting the tail of config.log for old-configure failures from moz.configure. r=ted 2016-03-30 07:07:30 +09:00
hotfixes.m4 Bug 1260605 - Remove hack from bug 967556. r=nalexander 2016-04-01 09:43:26 +09:00
icu.m4 Bug 1484535 - Allow C++ files to check MOZ_SYSTEM_ICU. r=froydnj 2018-08-21 16:02:00 +03:00
install-sh
ios.m4 Bug 1317504 - Don't try to set LD from old-configure. r=chmanchester 2016-11-24 15:47:10 +09:00
lto.m4
mozheader.m4
mozprog.m4
nspr-build.m4 Bug 1341222 - Avoid m4 breaking the sed expressions that set NSPR_INCLUDE_DIR and NSPR_LIB_DIR. r=froydnj 2018-08-21 07:25:00 +09:00
nspr.m4
nss.m4
pkg.m4 Bug 1269513 - Implement PKG_CHECK_MODULES equivalent in Python configure. r=glandium 2016-05-17 14:40:03 -07:00
sanitize.m4 Backed out 2 changesets (bug 1483780) for build bustages on a CLOSED TREE 2018-09-21 05:43:03 +03:00
subconfigure.m4 Bug 1254987 - Get the subconfigure working properly for mail/configure.in. r=glandium 2016-03-09 23:19:00 +01:00
toolchain.m4 Bug 1489443 - Set GCC_USE_GNU_LD based on linker kind. r=froydnj 2018-10-17 19:46:03 +00:00
zlib.m4 bug 1244743 - Replace MOZ_NATIVE_X with MOZ_SYSTEM_X. r=gps 2016-02-01 10:49:34 -05:00