Merge pull request #8813 from niacat/qb-libs-cflags

qb.libs.sh: Use CFLAGS in header existence check.
This commit is contained in:
Twinaphex 2019-05-21 04:34:08 +02:00 committed by GitHub
commit 0126ad2a75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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