Bug 1418425 - Compile zlib as host lib r=glandium
authorSylvestre Ledru <sledru@mozilla.com>
Sun, 26 Nov 2017 22:59:14 +0100
changeset 453346 142001babb39d7cce8b88a2103ba8863fce685ad
parent 453345 4c0e52aa8c09ebc6be490837dbcf3c28a339c7c1
child 453347 47fbcaf5ad059616de22219b12223b798b6b758f
push id1648
push usermtabara@mozilla.com
push dateThu, 01 Mar 2018 12:45:47 +0000
treeherdermozilla-release@cbb9688c2eeb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1418425
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1418425 - Compile zlib as host lib r=glandium MozReview-Commit-ID: 5jXyVhRI0kD
modules/zlib/src/moz.build
--- a/modules/zlib/src/moz.build
+++ b/modules/zlib/src/moz.build
@@ -11,16 +11,17 @@ EXPORTS += [
 ]
 
 if CONFIG['ZLIB_IN_MOZGLUE']:
     FINAL_LIBRARY = 'mozglue'
     DEFINES['IMPL_MFBT'] = True
 else:
     # The final library is in config/external/zlib
     FINAL_LIBRARY = 'zlib'
+    HostLibrary('hostzlib')
 
 SOURCES += [
     'adler32.c',
     'compress.c',
     'crc32.c',
     'deflate.c',
     'gzclose.c',
     'gzlib.c',
@@ -29,8 +30,11 @@ SOURCES += [
     'infback.c',
     'inffast.c',
     'inflate.c',
     'inftrees.c',
     'trees.c',
     'uncompr.c',
     'zutil.c',
 ]
+
+HOST_SOURCES = SOURCES
+