From 2cc6505997e8ed7e49d8bf6e7214d07ca6fc61b6 Mon Sep 17 00:00:00 2001 From: orbea Date: Thu, 24 Jan 2019 23:07:43 -0800 Subject: [PATCH] qb: Fix HAVE_RETRO check. --- qb/config.libs.sh | 6 +++--- qb/qb.libs.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qb/config.libs.sh b/qb/config.libs.sh index fba2da9f54..bb09b97670 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -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" } diff --git a/qb/qb.libs.sh b/qb/qb.libs.sh index e3101511ce..09006990b0 100644 --- a/qb/qb.libs.sh +++ b/qb/qb.libs.sh @@ -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\"")"