1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 20:25:47 +00:00

qb.libs.sh: Use CFLAGS in header check.

This commit is contained in:
nia 2019-05-18 22:42:25 +01:00
parent d0707437c9
commit 3be224989d

View File

@ -229,7 +229,7 @@ check_header()
printf %s\\n "int main(void) { return 0; }" >> "$TEMP_C"
answer='no'
printf %s "Checking presence of header file $CHECKHEADER"
eval "set -- $INCLUDE_DIRS"
eval "set -- $CFLAGS $INCLUDE_DIRS"
"$CC" -o "$TEMP_EXE" "$TEMP_C" "$@" >>config.log 2>&1 && answer='yes'
eval "HAVE_$val=\"$answer\""
printf %s\\n " ... $answer"