From 170392f03a49c7a2a1ac09606c513d2e5a89a08a Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jeremy@system76.com> Date: Fri, 21 Jun 2019 17:14:52 -0600 Subject: [PATCH] Compile cairodemu and eduke32 statically --- recipes/cairodemo/recipe.sh | 2 +- recipes/eduke32/recipe.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/cairodemo/recipe.sh b/recipes/cairodemo/recipe.sh index c720d9e51..5326f6f36 100755 --- a/recipes/cairodemo/recipe.sh +++ b/recipes/cairodemo/recipe.sh @@ -21,7 +21,7 @@ function recipe_build { export LDFLAGS="-L$sysroot/lib" export CPPFLAGS="-I$sysroot/include" set -x - "${CXX}" -I "$sysroot/include" -L "$sysroot/lib" cairodemo.c -o cairodemo -lorbital -lcairo -lpixman-1 -lfreetype -lpng -lz + "${CXX}" -I "$sysroot/include" -L "$sysroot/lib" cairodemo.c -o cairodemo -static -lorbital -lcairo -lpixman-1 -lfreetype -lpng -lz set +x skip=1 } diff --git a/recipes/eduke32/recipe.sh b/recipes/eduke32/recipe.sh index c6e07caff..f43d65254 100644 --- a/recipes/eduke32/recipe.sh +++ b/recipes/eduke32/recipe.sh @@ -14,9 +14,9 @@ function recipe_update { function recipe_build { sysroot="$(realpath ../sysroot)" - export LDFLAGS="-L$sysroot/lib" export CFLAGS="-I$sysroot/include -I$sysroot/include/SDL" - export SDLCONFIG="$sysroot/bin/sdl-config" + export LDFLAGS="-L$sysroot/lib -static" + export SDLCONFIG="$sysroot/bin/sdl-config --prefix=$sysroot" PLATFORM=REDOX make -j"$(nproc)" skip=1 -- GitLab