blob: cf262118d17917c64a17a4115ecba670619478ed (
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
|
tasks:
configure:
inherit:
task: 'gcc:compile'
build_depends:
- task: 'binutils:install'
depends:
- task: 'gcc:header-stubs'
run: |
cd gcc-build
make configure-target-libgcc
# A hack borrowed from OpenEmbedded:
# We can build an initial libgcc without having to rebuild the whole gcc
# afterwards by manipulating the Makefile
sed -i -r \
-e 's@^(INHIBIT_LIBC_CFLAGS =).*@\1 -Dinhibit_libc@' \
gcc/libgcc.mvars
sed -i -r \
-e 's@^(thread_header =).*@\1 gthr-single.h@' \
-e 's@^(enable_shared =).*@\1 no@' \
{{target.target_triple}}/libgcc/Makefile
compile:
inherit:
task: 'libgcc-initial:configure'
build_depends:
- task: 'binutils:install'
depends:
- task: 'gcc:header-stubs'
run: |
cd gcc-build
make -j8 all-target-libgcc
install:
inherit:
task: 'libgcc-initial:compile'
build_depends:
- task: 'binutils:install'
output:
default: {}
run: |
cd gcc-build
make DESTDIR={{destdir}} install-target-libgcc
ln -s libgcc.a {{destdir}}{{host.prefix}}/lib/gcc/{{target.target_triple}}/11.2.0/libgcc_eh.a
|