repo/xorg/mesa/build
2019-10-08 00:16:49 +03:00

21 lines
445 B
Bash
Executable File

#!/bin/sh -e
export DESTDIR="$1"
export CFLAGS="-DGLX_X86_READONLY_TEXT $CFLAGS"
# Fix issues with musl and firefox.
# See: https://bugs.freedesktop.org/show_bug.cgi?id=35268
sed -i "/pre_args += '-DGLX_USE_TLS'/d" meson.build
meson \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=release \
-Dplatforms=x11,drm \
. output
ninja -C output
ninja -C output install