From cbd903f0e664eb4328356bd93d91cac198ac5b67 Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jeremy@system76.com> Date: Mon, 17 Jun 2019 20:03:26 -0600 Subject: [PATCH] Fix mesa build --- recipes/mesa/recipe.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/recipes/mesa/recipe.sh b/recipes/mesa/recipe.sh index 16b053a38..38a7a6307 100644 --- a/recipes/mesa/recipe.sh +++ b/recipes/mesa/recipe.sh @@ -17,7 +17,7 @@ function recipe_build { sysroot="$(realpath ../sysroot)" export CFLAGS="-I$sysroot/include -DHAVE_PTHREAD=1" export CPPFLAGS="-I$sysroot/include -DHAVE_PTHREAD=1" - export LDFLAGS="-L$sysroot/lib" + export LDFLAGS="-L$sysroot/lib --static" #export LLVM_CONFIG="x86_64-unknown-redox-llvm-config" NOCONFIGURE=1 ./autogen.sh ./configure \ @@ -31,11 +31,13 @@ function recipe_build { --disable-glx \ --disable-gbm \ --disable-llvm-shared-libs \ + --disable-shared \ --enable-llvm \ --enable-gallium-osmesa \ + --enable-static \ --with-gallium-drivers=swrast \ --with-platforms=surfaceless - make -j"$(nproc)" + make V=1 -j"$(nproc)" skip=1 } -- GitLab