From efcf6220b93f3fe8bd16e089ec93f87c95b598f3 Mon Sep 17 00:00:00 2001 From: nia Date: Sat, 18 May 2019 17:17:59 +0100 Subject: [PATCH] qb.libs.sh: Use $CFLAGS when searching for header files and macros. Allows configuring with --enable-gl on systems with OpenGL outside the standard compiler search path (assuming CFLAGS is set correctly...) --- qb/qb.libs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qb/qb.libs.sh b/qb/qb.libs.sh index c1c6a07e7d..f8f3756c00 100644 --- a/qb/qb.libs.sh +++ b/qb/qb.libs.sh @@ -230,7 +230,7 @@ check_header() answer='no' printf %s "Checking presence of header file $CHECKHEADER" eval "set -- $INCLUDE_DIRS" - "$CC" -o "$TEMP_EXE" "$TEMP_C" "$@" >>config.log 2>&1 && answer='yes' + "$CC" "$CFLAGS" -o "$TEMP_EXE" "$TEMP_C" "$@" >>config.log 2>&1 && answer='yes' eval "HAVE_$val=\"$answer\"" printf %s\\n " ... $answer" rm -f -- "$TEMP_C" "$TEMP_EXE" @@ -265,7 +265,7 @@ EOF macro="$2" printf %s "Checking presence of predefined macro $macro$ECHOBUF" eval "set -- $CFLAGS $INCLUDE_DIRS" - "$CC" -o "$TEMP_EXE" "$TEMP_C" "$@" >>config.log 2>&1 && answer='yes' + "$CC" "$CFLAGS" -o "$TEMP_EXE" "$TEMP_C" "$@" >>config.log 2>&1 && answer='yes' eval "HAVE_$val=\"$answer\"" printf %s\\n " ... $answer" rm -f -- "$TEMP_C" "$TEMP_EXE"