forked from Bananymous/banan-os
				
			
		
			
				
	
	
		
			34 lines
		
	
	
		
			864 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			864 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
| #!/bin/bash ../install.sh
 | |
| 
 | |
| NAME='binutils'
 | |
| VERSION='2.44'
 | |
| DOWNLOAD_URL="https://ftpmirror.gnu.org/gnu/binutils/binutils-$VERSION.tar.gz#0cdd76777a0dfd3dd3a63f215f030208ddb91c2361d2bcc02acec0f1c16b6a2e"
 | |
| DEPENDENCIES=('zlib' 'zstd')
 | |
| MAKE_INSTALL_TARGETS=('install-strip')
 | |
| CONFIGURE_OPTIONS=(
 | |
| 	"--target=$BANAN_TOOLCHAIN_TRIPLE"
 | |
| 	'--with-sysroot=/'
 | |
| 	"--with-build-sysroot=$BANAN_SYSROOT"
 | |
| 	'--enable-initfini-array'
 | |
| 	'--enable-shared'
 | |
| 	'--enable-lto'
 | |
| 	'--disable-nls'
 | |
| 	'--disable-werror'
 | |
| )
 | |
| 
 | |
| pre_configure() {
 | |
| 	unset PKG_CONFIG_DIR
 | |
| 	unset PKG_CONFIG_SYSROOT_DIR
 | |
| 	unset PKG_CONFIG_LIBDIR
 | |
| 	unset PKG_CONFIG_PATH
 | |
| }
 | |
| 
 | |
| post_install() {
 | |
| 	# remove libtool files
 | |
| 	rm -f $BANAN_SYSROOT/usr/lib/libbfd.la
 | |
| 	rm -f $BANAN_SYSROOT/usr/lib/libctf.la
 | |
| 	rm -f $BANAN_SYSROOT/usr/lib/libctf-nobfd.la
 | |
| 	rm -f $BANAN_SYSROOT/usr/lib/libopcodes.la
 | |
| 	rm -f $BANAN_SYSROOT/usr/lib/libsframe.la
 | |
| }
 |