mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-26 03:24:36 +00:00
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...)
This commit is contained in:
parent
bb6a42f8f0
commit
efcf6220b9
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user