The _WIN32_MSVC checks assume the host and target compilers are the
same, which is not the case when cross-compiling for Android.
Differential Revision: https://phabricator.services.mozilla.com/D210976
Get read of -pthreads because (according to gcc info page) it's only
there on solaris and as an alias to -pthread.
-D_REENTRANT is always defined by gcc and clang when -pthreads is on.
-D_THREAD_SAFE is only defined on AIX by clang
so get rid of the related actions.
libpthreads is an AIX thing, I assume we can remove it too.
c/cxx flags are always added to the linker flags, so don't do any
linker-related addition.
Differential Revision: https://phabricator.services.mozilla.com/D203687
Actually remove the check for demangle, no supported target need that
check.
Also make library dependencies explicit instead of relying on "$LIBS".
Differential Revision: https://phabricator.services.mozilla.com/D203637
The -ldl flag was previously set globally, it's now set for the libs
that use it.
Also rationalize the difference between HAVE_DLOPEN and HAVE_DLFCN_H.
Differential Revision: https://phabricator.services.mozilla.com/D203594
Actually remove the check for demangle, no supported target need that
check.
Also make library dependencies explicit instead of relying on "$LIBS".
Differential Revision: https://phabricator.services.mozilla.com/D203637
The -ldl flag was previously set globally, it's now set for the libs
that use it.
Also rationalize the difference between HAVE_DLOPEN and HAVE_DLFCN_H.
Differential Revision: https://phabricator.services.mozilla.com/D203594
Optimize android at "-O2" (speed) instead of "-Oz" (reduced code size) because the performance improvements on benchmarks and pageload outweigh the expected increased in binary size.
Differential Revision: https://phabricator.services.mozilla.com/D209967
The -ldl flag was previously set globally, it's now set for the libs
that use it.
Also rationalize the difference between HAVE_DLOPEN and HAVE_DLFCN_H.
Differential Revision: https://phabricator.services.mozilla.com/D203594
This check is used to set $EXEXT, which is unused, but it also sets
$ac_exeext which is used internally for various tests, including
AC_TRY_LINK.
Interestingly, setting $ac_exeext to a non empty value bypasses the only
portability issue with MinGW that automatically adds a `.exe` suffix if no
extension is given. So Always set `.out` as extension, as it's only used
internally.
Differential Revision: https://phabricator.services.mozilla.com/D207001
The comment was added in bug 407459, but the code it was relevant to was
moved without the comment in bug 1257448. At the same time, while the
code that came with the comment was moved and is still relevant, the
comment itself refers to code that was removed in bug 1364358.
Differential Revision: https://phabricator.services.mozilla.com/D202189
Bug 1524461 introduced a typo, using __VA_ARGS instead of __VA_ARGS__. A
previous attempt to fix that led to bug 1684265 and the fix has been in
limbo since then. Bug 1876415 however recently changed things so that
mac builds may not use CLOCK_MONOTONIC for TimeStamp, which would avoid
bug 1684265 after fixing the configure test.
Since the first attempt, though, the availability() hack ceased to work.
At the same time, macOS < 10.12 is not supported anymore, so all
supported versions of macOS do have CLOCK_MONOTONIC, so we just remove
the availability() hack altogether.
Differential Revision: https://phabricator.services.mozilla.com/D202187
Provide the minimal support from moz.configure to do so.
The only observable change of this patch is to permute -fPIC and
-Wa,--noexecstack in ASFLAGS.
Differential Revision: https://phabricator.services.mozilla.com/D201349
Linux is the only platform where we have a different optimization level
between normal and debug builds. That comes from bug 1368649, but was
not the original intent: the first landing for that bug actually set the
optimization level to -O2 for all non-PGO Linux builds, but that caused
build problems on the debug builds with the compiler used at the time.
Time has passed, compiler versions have been released, and, in fact,
back then we were still compiling with gcc for the shipped builds.
It's time to go with the original intent.
Differential Revision: https://phabricator.services.mozilla.com/D188896