blob: e2c5a6b46498faf535c41a5435278e31b8c940e1 (
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
|
image: debian/sid
packages:
- gcc-aarch64-linux-gnu
- qemu-user
sources:
- https://git.sr.ht/~mcf/cproc
- https://git.sr.ht/~mcf/qbe
environment:
PATH: $HOME/qbe/obj:$PATH
tasks:
- build: |
cd qbe
cat >config.h <<EOF
#define Defasm Gaself
#define Deftgt T_arm64
EOF
make
cd ../cproc
./configure \
--target=aarch64-linux-gnu \
--with-ldso=/usr/aarch64-linux-gnu/lib/ld-linux-aarch64.so.1 \
--with-gcc-libdir=/usr/lib/gcc-cross/aarch64-linux-gnu/8
make all check
make bootstrap LDFLAGS='-Wl,-rpath,/usr/aarch64-linux-gnu/lib'
file stage2/cproc stage2/cproc-qbe
|