Bug 1629328 - Add ntlddl.lib to the SeaMonkey OS_LIBS linker list. r=frg
authorBill Gianopoulos <wgianopoulos@gmail.com>
Thu, 09 Apr 2020 16:48:33 +0300
changeset 38792 64818bd18ee89238fc9454cc035eb0b89d37def7
parent 38791 2a7e1fdb90772dd06e38a85f3f511721ae4ae6a1
child 38793 bec9319045eb67973270ad2d195f19220bad9081
push id401
push userclokep@gmail.com
push dateMon, 01 Jun 2020 20:41:59 +0000
reviewersfrg
bugs1629328, 1603974
Bug 1629328 - Add ntlddl.lib to the SeaMonkey OS_LIBS linker list. r=frg Port Bug 1603974 "Part 1: Implement nt::VirtualQuery consuming only ntdll.dll".
suite/app/moz.build
--- a/suite/app/moz.build
+++ b/suite/app/moz.build
@@ -49,16 +49,21 @@ if CONFIG['MOZ_SANDBOX'] and CONFIG['OS_
         'sandbox_s',
     ]
 
     DELAYLOAD_DLLS += [
         'winmm.dll',
         'user32.dll',
     ]
 
+if CONFIG['OS_ARCH'] == 'WINNT':
+    OS_LIBS += [
+        'ntdll',
+    ]
+
     if CONFIG['CC_TYPE'] == "msvc":
         CFLAGS += ['-guard:cf']
         CXXFLAGS += ['-guard:cf']
         LDFLAGS += ['-guard:cf']
 
 # Control the default heap size.
 # This is the heap returned by GetProcessHeap().
 # As we use the CRT heap, the default size is too large and wastes VM.