Bug 1418425 - Compile zlib as host lib r=glandium
authorSylvestre Ledru <sledru@mozilla.com>
Sun, 26 Nov 2017 22:59:14 +0100
changeset 450860 142001babb39d7cce8b88a2103ba8863fce685ad
parent 450859 4c0e52aa8c09ebc6be490837dbcf3c28a339c7c1
child 450861 47fbcaf5ad059616de22219b12223b798b6b758f
push id8543
push userryanvm@gmail.com
push dateTue, 16 Jan 2018 14:33:22 +0000
treeherdermozilla-beta@a6525ed16a32 [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
+