From d82a65089f29afd3e25a088e8b6b40c4c8c925ff Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 16 Dec 2016 11:28:57 +0100 Subject: [PATCH] Checking for retro_init symbol inside libretro.a causes more issues than it solves - .a file can be either a C++ or C-oriented core, hence we'd need two consecutive checks, but both just do exit 0 on error --- qb/config.libs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qb/config.libs.sh b/qb/config.libs.sh index 3145ffcdce..850a2b36e9 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -126,7 +126,8 @@ else LIBRETRO="-lretro" fi [ "$HAVE_DYNAMIC" = 'yes' ] || { - check_lib_cxx RETRO "$LIBRETRO" retro_init "$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\"?" + check_lib RETRO "$LIBRETRO" "$DYLIB" "Cannot find libretro, did you forget --with-libretro=\"-lretro\"?" add_define_make libretro "$LIBRETRO" }