Commit e1c5dc11 authored by Natanael Copa's avatar Natanael Copa

main/mesa: force -march i586 for atomic compare and swap

ref #4254

This is a temp workaround til the toolchain default to 586
parent 6c96fddd
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mesa
pkgver=10.5.6
pkgrel=0
pkgrel=1
pkgdesc="Mesa DRI OpenGL library"
url="http://www.mesa3d.org"
arch="all"
......@@ -59,6 +59,8 @@ build() {
cd "$_builddir"
[ "$CLIBC" = "musl" ] && export CFLAGS="$CFLAGS -D_XOPEN_SOURCE=700"
# set the minimum arch for x86 to prevent atmomic linker errors
[ "$CARCH" = "x86" ] && export CFLAGS="$CFLAGS -march=i586 -mtune=generic"
export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
./configure \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment