mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-25 22:34:18 +08:00
Merge branch 'fix_dyn_link' into 'master'
Fix dynamic linked dependencies flags See merge request redox-os/cookbook!496
This commit is contained in:
commit
0ae35106b5
@ -16,7 +16,7 @@ function recipe_prepare {
|
||||
function recipe_build {
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
set -x
|
||||
"${CXX}" -O2 -I "$sysroot/include" -L "$sysroot/lib" gears.c -o sdl2_gears -static -lSDL2_image -lSDL2_mixer -lSDL2_ttf -lSDL2 -lorbital $("${PKG_CONFIG}" --libs osmesa) -lfreetype -lpng -ljpeg -lvorbisfile -lvorbis -logg -lz
|
||||
"${CXX}" -O2 -I "$sysroot/include" -L "$sysroot/lib" gears.c -o sdl2_gears -dynamic -lSDL2_image -lSDL2_mixer -lSDL2_ttf -lSDL2 -lorbital $("${PKG_CONFIG}" --libs osmesa) -lfreetype -lpng -ljpeg -lvorbisfile -lvorbis -logg -lz
|
||||
set +x
|
||||
skip=1
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@ function recipe_version {
|
||||
function recipe_build {
|
||||
export CPPHOST=${HOST}-g++
|
||||
sysroot="$(realpath ../sysroot)"
|
||||
export LDFLAGS="-L$sysroot/lib --static"
|
||||
export LDFLAGS="-L$sysroot/lib -rdynamic"
|
||||
export CPPFLAGS="-I$sysroot/include"
|
||||
"$REDOX_MAKE" all -j"$($NPROC)"
|
||||
skip=1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user