mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	scripts: update get-deps to allow clean build
libssh2 depends on openssl, therefore it is important that openssl is build before libssh2. The old get-deps would cause errors in 2 situations: 1) In a clean build, make of libssh2 would fail 2) In a normal build, where openssl changed version, make of libssh2 would depend on old build. Signed-off-by: Jan Iversen <jan@casacondor.com>
This commit is contained in:
		
							parent
							
								
									2c11544d93
								
							
						
					
					
						commit
						f179ec033f
					
				
					 1 changed files with 11 additions and 11 deletions
				
			
		| 
						 | 
				
			
			@ -237,6 +237,17 @@ if [[ $PLATFORM = Darwin && "$BUILD_DEPS" == "1" ]] ; then
 | 
			
		|||
	make install
 | 
			
		||||
	popd
 | 
			
		||||
 | 
			
		||||
	./subsurface/scripts/get-dep-lib.sh single . openssl
 | 
			
		||||
	pushd openssl
 | 
			
		||||
	mkdir -p build
 | 
			
		||||
	cd build
 | 
			
		||||
	../Configure --prefix=$INSTALL_ROOT --openssldir=$INSTALL_ROOT $OLDER_MAC darwin64-x86_64-cc
 | 
			
		||||
	make depend
 | 
			
		||||
	# all the tests fail because the assume that openssl is already installed. Odd? Still thinks work
 | 
			
		||||
	make -j4 -k
 | 
			
		||||
	make -k install
 | 
			
		||||
	popd
 | 
			
		||||
 | 
			
		||||
	./subsurface/scripts/get-dep-lib.sh single . libssh2
 | 
			
		||||
	pushd libssh2
 | 
			
		||||
	mkdir -p build
 | 
			
		||||
| 
						 | 
				
			
			@ -315,17 +326,6 @@ if [[ $PLATFORM = Darwin && "$BUILD_DEPS" == "1" ]] ; then
 | 
			
		|||
	make -j4
 | 
			
		||||
	make install
 | 
			
		||||
	popd
 | 
			
		||||
 | 
			
		||||
	./subsurface/scripts/get-dep-lib.sh single . openssl
 | 
			
		||||
	pushd openssl
 | 
			
		||||
	mkdir -p build
 | 
			
		||||
	cd build
 | 
			
		||||
	../Configure --prefix=$INSTALL_ROOT --openssldir=$INSTALL_ROOT $OLDER_MAC darwin64-x86_64-cc
 | 
			
		||||
	make depend
 | 
			
		||||
	# all the tests fail because the assume that openssl is already installed. Odd? Still thinks work
 | 
			
		||||
	make -j4 -k
 | 
			
		||||
	make -k install
 | 
			
		||||
	popd
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue