blob: 0de77e9ca900c039d7647d8b150a749ca72e0f23 (
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
|
# switch to 32-bit target (was linux-elf before, which I think is wrong also for i686)
eval "$(
declare -f build | \
sed '
s@linux-x86_64@linux-generic32@
s@ enable-ec_nistp_64_gcc_128 @ @
s@ linux-${CARCH}@ @
'
)"
# i486-specific, disable hand-crafted assembly code
if [ "${CARCH}" = "i486" ]; then
eval "$(
declare -f build | \
sed '
s@enable-ktls@enable-ktls 386@
s@make@make LDFLAGS='-latomic@'
'
)"
fi
# i686-specific, disable hand-crafted assembly code
if [ "${CARCH}" = "i686" ]; then
eval "$(
declare -f build | \
sed '
s@enable-ktls@enable-ktls no-sse2@
'
)"
fi
# please do not build in parallel and ignore failing tests
eval "$(
declare -f check | \
sed '
s/make.*test/make test || true/
'
)"
|