Compile cairodemu and eduke32 statically

This commit is contained in:
Jeremy Soller 2019-06-21 17:14:52 -06:00
parent a983c43158
commit 170392f03a
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
2 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

@ -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