Bug 1367932 - Fix compile errors with SA caused by missing -lresolv on macOS
This is a simple workaround, but it could be replaced by something cleaner
(see bugzilla).
MozReview-Commit-ID: KNgbqVkSXki
--- a/toolkit/library/moz.build
+++ b/toolkit/library/moz.build
@@ -58,18 +58,19 @@ def Libxul(name):
Libxul_defines()
if CONFIG['MOZ_NEEDS_LIBATOMIC']:
OS_LIBS += ['atomic']
# This option should go away in bug 1290972, but we need to wait until
# Rust 1.12 has been released.
+ # We're also linking against libresolv to solve bug 1367932.
if CONFIG['OS_ARCH'] == 'Darwin':
- LDFLAGS += ['-Wl,-no_compact_unwind']
+ LDFLAGS += ['-Wl,-no_compact_unwind,-lresolv']
Libxul('xul')
FORCE_STATIC_LIB = True
STATIC_LIBRARY_NAME = 'xul_s'
SOURCES += [