toolchain-aarch64: fix install
This commit is contained in:
		
							parent
							
								
									be0f5b3775
								
							
						
					
					
						commit
						c071af7965
					
				
					 1 changed files with 5 additions and 6 deletions
				
			
		|  | @ -12,6 +12,7 @@ fetch() { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| build() { | build() { | ||||||
|  | 	export pkgdir=$(pwd)/sysroot | ||||||
| 	cd llvm-$pkgver | 	cd llvm-$pkgver | ||||||
| 	cd build-compiler-rt | 	cd build-compiler-rt | ||||||
| 	cmake -G Ninja ../compiler-rt \ | 	cmake -G Ninja ../compiler-rt \ | ||||||
|  | @ -39,23 +40,21 @@ build() { | ||||||
| 		-DLIBCXX_HAS_MUSL_LIBC=ON \ | 		-DLIBCXX_HAS_MUSL_LIBC=ON \ | ||||||
| 		-DLLVM_CONFIG_PATH=/usr/bin/llvm-config | 		-DLLVM_CONFIG_PATH=/usr/bin/llvm-config | ||||||
| 
 | 
 | ||||||
| 	DESTDIR=$(pwd)/../../sysroot samu install | 	DESTDIR=$pkgdir samu install | ||||||
| 	cd ../.. | 	cd ../.. | ||||||
| 
 | 
 | ||||||
| 	cd musl-1.2.2 | 	cd musl-1.2.2 | ||||||
| 	CFLAGS='--sysroot=$(pwd)/../sysroot/usr/aarch64-linux-musl/ --target=aarch64-unknown-linux-musl' AR=ar LIBCC=$(pwd)/../sysroot/usr/aarch64-linux-musl/lib/linux/libclang_rt.builtins-aarch64.a ./configure \ | 	CFLAGS="--sysroot=$pkgdir/usr/aarch64-linux-musl/ --target=aarch64-unknown-linux-musl" AR=ar LIBCC=$pkgdir/usr/aarch64-linux-musl/lib/linux/libclang_rt.builtins-aarch64.a ./configure \ | ||||||
| 		--prefix=/usr/aarch64-linux-musl \ | 		--prefix=/usr/aarch64-linux-musl \ | ||||||
| 		--target=aarch64-unknown-linux-musl \ | 		--target=aarch64-unknown-linux-musl \ | ||||||
| 		--enable-wrappers=no | 		--enable-wrappers=no | ||||||
| 
 | 
 | ||||||
| 	gmake | 	gmake | ||||||
| 	gmake install DESTDIR=$(pwd)/../sysroot/ | 	gmake install DESTDIR=$pkgdir | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| package() { | package() { | ||||||
| 	cd $pkgname-$pkgver | 	mv sysroot/* $pkgdir | ||||||
| 	cd build-compiler-rt |  | ||||||
| 	DESTDIR=$pkgdir samu install |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| license() { | license() { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue