diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-05-28 06:58:03 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-05-28 06:59:54 +0000 |
commit | f3f0096346f5123518483533d44d7d2a77518e15 (patch) | |
tree | a363b042df38293bf01e50ba39cdc2e7379abb51 /main/mesa | |
parent | 1e30d81c26ead4896216b9b04401adcc952bd42d (diff) | |
download | aports-f3f0096346f5123518483533d44d7d2a77518e15.tar.bz2 aports-f3f0096346f5123518483533d44d7d2a77518e15.tar.xz |
main/mesa: force -march i586 for atomic compare and swap
ref #4254
This is a temp workaround til the toolchain default to 586
Diffstat (limited to 'main/mesa')
-rw-r--r-- | main/mesa/APKBUILD | 4 |
1 files changed, 3 insertions, 1 deletions
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 <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 \ |