Bug 1417309 - Only build elfhack when building a toolkit-based application. r?build draft
authorMike Hommey <mh+mozilla@glandium.org>
Wed, 08 Nov 2017 09:10:18 +0900
changeset 698007 6c0c39a8bbf0712c78c36e593b5871a3aa2023c3
parent 697996 130638c037b232760f65aa05e4aaea676df98db7
child 698008 506a82a7e10298ae42774a0510cb93e7326d11d4
push id89172
push userbmo:mh+mozilla@glandium.org
push dateWed, 15 Nov 2017 05:25:33 +0000
reviewersbuild
bugs1417309
milestone59.0a1
Bug 1417309 - Only build elfhack when building a toolkit-based application. r?build
old-configure.in
--- 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