From f3f0096346f5123518483533d44d7d2a77518e15 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 28 May 2015 06:58:03 +0000 Subject: main/mesa: force -march i586 for atomic compare and swap ref #4254 This is a temp workaround til the toolchain default to 586 --- main/mesa/APKBUILD | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main/mesa/APKBUILD') diff --git a/main/mesa/APKBUILD b/main/mesa/APKBUILD index 91b675c03d..5790b8abab 100644 --- a/main/mesa/APKBUILD +++ b/main/mesa/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa 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 \ -- cgit v1.2.3