Bug 1417309 - Only build elfhack when building a toolkit-based application. r?build
--- a/old-configure.in
+++ b/old-configure.in
@@ -3872,17 +3872,19 @@ MOZ_ARG_ENABLE_BOOL(install-strip,
[ --enable-install-strip Enable stripping of libs & executables when packaging ],
PKG_SKIP_STRIP= ,
PKG_SKIP_STRIP=1)
dnl ========================================================
dnl = --disable-elf-hack
dnl ========================================================
-USE_ELF_HACK=1
+if test -n "$MOZ_WIDGET_TOOLKIT"; then
+ USE_ELF_HACK=1
+fi
MOZ_ARG_DISABLE_BOOL(elf-hack,
[ --disable-elf-hack Disable elf hacks],
[USE_ELF_HACK=],
[USE_ELF_HACK=1])
# Only enable elfhack where supported
if test "$USE_ELF_HACK" = 1; then
case "${HOST_OS_ARCH},${OS_ARCH}" in