blob: 0a1713cb9c99074abe8b4af0f45e55fba43dd853 (
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
|
# actually build a 32-bit version
eval "$(
declare -f build | \
sed '
s|./configure|./configure --dest-cpu x86|g
'
)"
# linker runs out of memory on 32-bit
eval "$(
declare -f build | \
sed '
3 i LDFLAGS+=" -Wl,--no-keep-memory"
3 i CFLAGS+=" -g1"
3 i CXXFLAGS+=" -g1"
'
)"
# add -latomic where needed (i486)
if [ "$CARCH" = 'i486' ]; then
source+=('node-17.1.0-atomic.patch')
sha512sums+=('a2acca076dc0f65e17ffb5ac0bbf4dc9b8be845a400b66b5f83f5efbfca16e01ecc675a307eb0c28527874dea6464699f3969c3ee9a94226af568fb18feca331')
eval "$(
declare -f prepare | \
sed '
$i patch -Np1 -i "../node-17.1.0-atomic.patch"
'
)"
eval "$(
declare -f build | \
sed '
3 i LDFLAGS+=" -latomic"
'
)"
fi
|