mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	iOS build: only build the parts of openssl that we need
No point in creating the apps, etc. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									63b01b7510
								
							
						
					
					
						commit
						0873d46a64
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -140,13 +140,14 @@ if [ ! -e $PKG_CONFIG_LIBDIR/libssl.pc ] ; then | ||||||
| 	if [[ "${ARCH}" != "i386" && "${ARCH}" != "x86_64" ]]; then | 	if [[ "${ARCH}" != "i386" && "${ARCH}" != "x86_64" ]]; then | ||||||
| 		sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" | 		sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" "crypto/ui/ui_openssl.c" | ||||||
| 	fi | 	fi | ||||||
| 	./Configure iphoneos-cross --openssldir="/tmp/$PREFIX" | 	./Configure iphoneos-cross --openssldir="$PREFIX" | ||||||
| 	sed -ie "s!^CFLAG=!CFLAG=-isysroot ${BUILDCHAIN} -miphoneos-version-min=${SDKVERSION} !" "Makefile" | 	sed -ie "s!^CFLAG=!CFLAG=-isysroot ${BUILDCHAIN} -miphoneos-version-min=${SDKVERSION} !" "Makefile" | ||||||
|  | 	sed -ie "s!^DIRS=.*!DIRS= crypto ssl !" "Makefile" | ||||||
| 	# Use env to make all these temporary, so they don't pollute later builds. | 	# Use env to make all these temporary, so they don't pollute later builds. | ||||||
| #	bash -x ./config shared no-ssl2 no-ssl3 no-comp no-hw no-engine --openssldir=$PREFIX | #	bash -x ./config shared no-ssl2 no-ssl3 no-comp no-hw no-engine --openssldir=$PREFIX | ||||||
| 	make depend | 	make depend | ||||||
| 	make | 	make build_libs | ||||||
| 	make install | 	make install_sw | ||||||
| 	popd | 	popd | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue