blob: 17b2943b84714845be45a23d5f7278a695007205 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Huayu ZHANG <zhanghuayu.dev@gmail.com>
pkgname=i686-elf-gcc-aarch64
pkgver=12.2.0
pkgrel=1
pkgdesc="i686-elf-gcc build for host aarch64"
arch=('aarch64')
url="https://gcc.gnu.org/"
license=('GPL')
depends=('xz' 'libmpc' 'i686-elf-binutils-aarch64')
source=("https://ftp.gnu.org/gnu/gcc/gcc-${pkgver}/gcc-${pkgver}.tar.gz")
sha256sums=('ac6b317eb4d25444d87cf29c0d141dedc1323a1833ec9995211b13e1a851261c')
prepare() {
cd "${srcdir}"
mkdir build
}
build() {
cd "${srcdir}/build"
../gcc-${pkgver}/configure --target=i686-elf \
--disable-nls \
--without-isl \
--without-headers \
--with-as=/usr/local/bin/i686-elf-as \
--with-ld=/usr/local/bin/i686-elf-ld \
--enable-languages=c,c++ \
--disable-werror
# edit /etc/makepkg.conf `MAKEFLAG` to speed up build
make all-gcc
make all-target-libgcc
}
package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install-gcc
make DESTDIR="${pkgdir}" install-target-libgcc
cd "${pkgdir}/usr/local/share"
rm -rf info
rm -rf man
}
|