2017-06-15 09:06:45 +03:00
|
|
|
ac_add_options --disable-compile-environment
|
|
|
|
|
2017-07-20 05:07:53 +03:00
|
|
|
# In case mozconfig.cache was already included
|
|
|
|
unset CCACHE
|
2017-07-27 08:02:39 +03:00
|
|
|
unset SCCACHE_VERBOSE_STATS
|
2017-07-20 05:07:53 +03:00
|
|
|
# In case it wasn't
|
|
|
|
NO_CACHE=1
|
|
|
|
|
2017-06-15 09:06:45 +03:00
|
|
|
# Override any toolchain defines we've inherited from other mozconfigs.
|
|
|
|
unset CC
|
|
|
|
unset CXX
|
|
|
|
unset HOST_CC
|
|
|
|
unset HOST_CXX
|
2018-05-29 22:37:49 +03:00
|
|
|
unset LINKER
|
2017-06-15 09:06:45 +03:00
|
|
|
unset RUSTC
|
2019-04-13 01:47:52 +03:00
|
|
|
unset RUSTFLAGS
|
2017-06-15 09:06:45 +03:00
|
|
|
unset CARGO
|
2018-05-05 04:04:07 +03:00
|
|
|
unset RUSTDOC
|
2018-06-27 08:27:43 +03:00
|
|
|
unset RUSTFMT
|
2018-08-17 19:43:06 +03:00
|
|
|
unset CBINDGEN
|
2017-06-15 09:06:45 +03:00
|
|
|
unset MAKECAB
|
2020-01-16 17:14:13 +03:00
|
|
|
unset DUMP_SYMS
|
2017-06-15 09:06:45 +03:00
|
|
|
unset TOOLCHAIN_PREFIX
|
2017-07-11 23:39:08 +03:00
|
|
|
unset BINDGEN_CFLAGS
|
2017-07-20 08:06:23 +03:00
|
|
|
unset LLVM_CONFIG
|
2018-09-12 01:52:29 +03:00
|
|
|
unset LLVM_PROFDATA
|
2018-08-24 16:16:28 +03:00
|
|
|
unset ENABLE_CLANG_PLUGIN
|
2018-12-20 21:50:04 +03:00
|
|
|
unset MACOS_SDK_DIR
|
|
|
|
unset MACOS_PRIVATE_FRAMEWORKS_DIR
|
2019-01-31 02:53:26 +03:00
|
|
|
unset DIA_SDK_PATH
|
|
|
|
unset VC_PATH
|
|
|
|
unset WINDOWSSDKDIR
|
2019-03-07 01:47:08 +03:00
|
|
|
unset MOZ_LTO
|
2017-12-21 05:13:08 +03:00
|
|
|
|
|
|
|
unset MOZ_STDCXX_COMPAT
|
Bug 1079662 - Always enable PIE. r=froydnj
Last attempt, a few years ago, blatantly failed because nautilus (the
GNOME file manager) can't start PIE executables, which look like shared
libraries, and that it thus considers not being executables.
Downstreams don't actually have the problem, because users won't be
launching Firefox from a file manager, but for mozilla.org builds, it is
a problem because users would download, then extract, and then likely
try to run the Firefox executable from a file manager.
So for mozilla.org builds, we still need to find a way around the
nautilus problem.
A .desktop file could be a solution, but .desktop files have not
actually been designed for this use case, which leads to:
- having to use an awful one-liner shell wrapper to derive the path
to the executable from that of the .desktop file,
- not even being able to associate an icon,
- the .desktop file not being copiable to a location where .desktop
files would normally go, because it would then fail to find the
executable.
Another possibility is to go back to using a shell wrapper, but that's
not entirely appealing.
What we chose here is similar, where we have a small `firefox` wrapper
that launches the real `firefox-bin` (which is still leftover from those
old times where we had a shell wrapper, for reasons).
The small `firefox` wrapper is a minimalist C executable that just
finds the path to the `firefox-bin` executable and executes it with the
same args it was called with. The wrapper is only enabled when the
MOZ_NO_PIE_COMPAT environment variable is set, which we only take into
account on Linux. The variable is only really meant to be used for
mozilla.org builds, for the nautilus problem. Downstreams will just pick
the default, which is changed to build PIE.
On other platforms, PIE was already enabled by default, so we just
remove the --enable-pie configure flag.
Differential Revision: https://phabricator.services.mozilla.com/D5109
2018-09-06 07:27:49 +03:00
|
|
|
unset MOZ_NO_PIE_COMPAT
|
2019-01-05 17:34:01 +03:00
|
|
|
|
|
|
|
unset AR
|
|
|
|
unset NM
|
|
|
|
unset RANLIB
|
2019-02-15 07:50:07 +03:00
|
|
|
unset NASM
|
2020-01-07 13:28:47 +03:00
|
|
|
|
2020-01-10 22:56:56 +03:00
|
|
|
# Don't unset this on Linux artifact builds so the artifact builds correctly
|
2020-04-22 14:16:10 +03:00
|
|
|
# package any Wasm sandboxed shared libraries.
|
2020-01-10 22:56:56 +03:00
|
|
|
if test `uname -s` != Linux; then
|
|
|
|
unset WASM_SANDBOXED_LIBRARIES
|
|
|
|
fi
|
2020-01-07 13:28:47 +03:00
|
|
|
unset WASM_CC
|
|
|
|
unset WASM_CXX
|
|
|
|
unset LUCETC
|
|
|
|
unset WASI_SYSROOT
|
2020-03-18 07:21:18 +03:00
|
|
|
unset PDBSTR
|
2020-03-27 01:13:14 +03:00
|
|
|
unset WINCHECKSEC
|