qb: Fix HAVE_RETRO check.

This commit is contained in:
orbea 2019-01-24 23:07:43 -08:00
parent 352fbc7cc7
commit 2cc6505997
2 changed files with 4 additions and 4 deletions

View File

@ -128,12 +128,12 @@ fi
if [ "$LIBRETRO" ]; then
die : 'Notice: Explicit libretro used, disabling dynamic libretro loading ...'
HAVE_DYNAMIC='no'
else LIBRETRO="-lretro"
else
LIBRETRO="-lretro"
fi
[ "$HAVE_DYNAMIC" = 'yes' ] || {
#check_lib '' RETRO "$LIBRETRO" retro_init "$DYLIB" "Cannot find libretro, did you forget --with-libretro=\"-lretro\"?"
check_lib '' RETRO "$LIBRETRO" "$DYLIB" "Cannot find libretro, did you forget --with-libretro=\"-lretro\"?"
check_lib '' RETRO "$LIBRETRO" retro_init "$DYLIB" '' 'Cannot find libretro, did you forget --with-libretro="-lretro"?'
add_define MAKEFILE libretro "$LIBRETRO"
}

View File

@ -56,7 +56,7 @@ check_enabled()
# $3 = lib
# $4 = function in lib
# $5 = extralibs
# $6 = headers
# $6 = headers [checked only if non-empty]
# $7 = critical error message [checked only if non-empty]
check_lib()
{ tmpval="$(eval "printf %s \"\$HAVE_$2\"")"