bc: add CPPFLAGS to libffi's test for X32

This commit is contained in:
Matthew Flatt 2020-11-25 20:21:57 -07:00
parent 8f3ea45de1
commit 1828ff5697
2 changed files with 3 additions and 1 deletions

View File

@ -5,3 +5,5 @@ Changes to the source in this copy:
* Commented out `__attribute__((deprecated))` for `ffi_java_...` to * Commented out `__attribute__((deprecated))` for `ffi_java_...` to
avoid warnings when compiling libffi itself. avoid warnings when compiling libffi itself.
* Added $CPPFLAGS to use of $CC in "configure.host"

View File

@ -115,7 +115,7 @@ case "${host}" in
;; ;;
*) *)
echo 'int foo (void) { return __x86_64__; }' > conftest.c echo 'int foo (void) { return __x86_64__; }' > conftest.c
if $CC $CFLAGS -Werror -S conftest.c -o conftest.s > /dev/null 2>&1; then if $CC $CFLAGS $CPPFLAGS -Werror -S conftest.c -o conftest.s > /dev/null 2>&1; then
TARGET_X32=yes TARGET_X32=yes
TARGET=X86_64 TARGET=X86_64
else else