diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2022-04-23 12:03:17 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2022-04-23 12:03:17 +0200 |
commit | 6f393709c7e6386a17060869b8d30406b63c1830 (patch) | |
tree | caaa3bcb52ffc5c477b279d7a23f5db5e50bf56a | |
parent | 1a83d6ead27d9afe8b68843b4085b69a5fdf7931 (diff) | |
download | packages-6f393709c7e6386a17060869b8d30406b63c1830.tar.xz |
extra/mesa-amber: applied patched from mesa
-rw-r--r-- | extra/mesa-amber/PKGBUILD | 19 |
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 |