blob: f0bf949b83f46a86cc77d14bba38db45a09e9ac4 (
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
|
# work around linker errors, see https://bbs.archlinux32.org/viewtopic.php?pid=4894#p4894
eval "$(
declare -f build | \
sed '
/_flags/ a _flags+=('fatal_linker_warnings=false')
'
)"
# fix regression uintptr_t in vaapi
source+=(chromium-vaapi-uintptr.patch)
sha256sums+=('c1b2285dec2acae6108a496cba9230680cd5eedf3467d4563ec4b546fc8224aa')
eval "$(
declare -f prepare | \
sed '
/chromium-vaapi-fix-the/a patch -Np1 -i ../chromium-vaapi-uintptr.patch
'
)"
# no SAMUFLAGS, see https://www.mail-archive.com/pacman-dev@archlinux.org/msg17258.html
# going the sed-way
eval "$(
declare -f build | \
sed '
s/ninja/ninja -j 1/
'
)"
# can't create dynamic relocation R_386_32 against local symbol in readonly segment
eval "$(
declare -f build | \
sed '
/gn gen/ i \
sed -i '\''s/ldflags += [[] "-m32" []]/ldflags += [ "-m32", "-Wl,-z,notext" ]/'\'' build/config/compiler/BUILD.gn
'
)"
# disable SSE2 for i686 (no i486 yet, flags are in the same place for MMX and SSE math, but
# we don't even have a gui yet), also disable SSE math as this is not supported with march=i686
# (at least gcc)
if [ "$CARCH" = 'i686' ]; then
eval "$(
declare -f build | \
sed '
/gn gen/ i \
sed -i '\''s/"-msse2"/""/'\'' build/config/compiler/BUILD.gn \
sed -i '\''s/"-mfpmath=sse"/""/'\'' build/config/compiler/BUILD.gn
'
)"
fi
|