index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2019-09-29 13:33:19 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2019-09-29 13:33:19 +0200 |
commit | b49853493be209110ceae4dfcee96e91a82f693d (patch) | |
tree | 3a57e0e584bfea21ac64ae1879392c4db85c49df | |
parent | 141a7d7ff8933feb5b7a25b6e154172e083a1cdf (diff) |
-rw-r--r-- | extra/chromium/PKGBUILD | 21 |
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 |