summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-04-23 12:03:17 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2022-04-23 12:03:17 +0200
commit6f393709c7e6386a17060869b8d30406b63c1830 (patch)
treecaaa3bcb52ffc5c477b279d7a23f5db5e50bf56a /extra
parent1a83d6ead27d9afe8b68843b4085b69a5fdf7931 (diff)
downloadpackages-6f393709c7e6386a17060869b8d30406b63c1830.tar.xz
extra/mesa-amber: applied patched from mesa
Diffstat (limited to 'extra')
-rw-r--r--extra/mesa-amber/PKGBUILD19
1 files changed, 19 insertions, 0 deletions
diff --git a/extra/mesa-amber/PKGBUILD b/extra/mesa-amber/PKGBUILD
index e69de29b..9f521908 100644
--- a/extra/mesa-amber/PKGBUILD
+++ b/extra/mesa-amber/PKGBUILD
@@ -0,0 +1,19 @@
+# defaults changed to SSE2 enabled by default, disable it
+if [ "$CARCH" = 'i686' -o "$CARCH" = 'i486' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ s/arch-meson /arch-meson -Dsse2=false /
+ '
+ )"
+fi
+
+# LTO on i486 results in out-of-memory
+if [ "$CARCH" == 'i486' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ s/-D b_lto=true/-D b_lto=false/
+ '
+ )"
+fi