aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-03 13:08:48 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-10-03 13:08:48 +0000
commitfdd19c63274921d12566330a7587c44092a3a4af (patch)
tree60952670d65ae71c18e36745ff314684db93436a /main
parent3a7bc13723c7a873b758314bec4490f0abbfcc2e (diff)
downloadaports-fdd19c63274921d12566330a7587c44092a3a4af.tar.bz2
aports-fdd19c63274921d12566330a7587c44092a3a4af.tar.xz
main/mesa: fix musl build
Diffstat (limited to 'main')
-rw-r--r--main/mesa/APKBUILD4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/mesa/APKBUILD b/main/mesa/APKBUILD
index da6847fe87..6dd86d6f4b 100644
--- a/main/mesa/APKBUILD
+++ b/main/mesa/APKBUILD
@@ -42,6 +42,7 @@ esac
prepare() {
cd "$_builddir"
+ update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
@@ -55,6 +56,9 @@ prepare() {
build() {
cd "$_builddir"
+
+ [ "$CLIBC" == musl ] && export CFLAGS="$CFLAGS -D_XOPEN_SOURCE=700"
+
export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
./configure \
--build=$CBUILD \