mirror of
				https://github.com/mozilla/gecko-dev.git
				synced 2025-11-04 10:18:41 +02:00 
			
		
		
		
	On OSX, depending on the node used to build python, lzma support was available or not (depending on local setup). Then it could fail at runtime if another node was used. Build xz from source and use it as a build dependency to always provide lzma on OSX, as we already do on Linux and Windows. As a side effect, provide more verbose output during the post link process. Differential Revision: https://phabricator.services.mozilla.com/D191044
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			631 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			631 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/sh
 | 
						|
# This Source Code Form is subject to the terms of the Mozilla Public
 | 
						|
# License, v. 2.0. If a copy of the MPL was not distributed with this
 | 
						|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
 | 
						|
#
 | 
						|
 | 
						|
set -e
 | 
						|
set -x
 | 
						|
 | 
						|
# Required fetch artifact
 | 
						|
xz_src=${MOZ_FETCHES_DIR}/xz-source
 | 
						|
 | 
						|
# Actual build
 | 
						|
work_dir=`pwd`
 | 
						|
dest_dir=${work_dir}/tmp-install
 | 
						|
tardir=xz
 | 
						|
 | 
						|
cd `mktemp -d`
 | 
						|
${xz_src}/configure --prefix=/${tardir} CFLAGS=-O2 ${configure_flags_extra} || { exit_status=$? && cat config.log && exit $exit_status ; }
 | 
						|
export MAKEFLAGS=-j`nproc`
 | 
						|
make
 | 
						|
make DESTDIR=${dest_dir} install
 | 
						|
cd ${dest_dir}
 | 
						|
 | 
						|
$(dirname $0)/pack.sh ${tardir}
 |