summaryrefslogtreecommitdiff
path: root/extra/chromium/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/chromium/PKGBUILD')
-rw-r--r--extra/chromium/PKGBUILD21
1 files changed, 21 insertions, 0 deletions
diff --git a/extra/chromium/PKGBUILD b/extra/chromium/PKGBUILD
index db83f313..ed4d640f 100644
--- a/extra/chromium/PKGBUILD
+++ b/extra/chromium/PKGBUILD
@@ -25,3 +25,24 @@ eval "$(
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)
+if [ "$CARCH" = 'i686' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ /gn gen/ i \
+ sed -i '\''s/"-msse2",/""/'\'' build/config/compiler/BUILD.gn
+ '
+ )"
+fi