configure: Add stdlib.h #include to CPPFLAGS check helper functions

This ensures that added CPPFLAGS are validated against libc headers.
pull/273/head
Diego Biurrun 8 years ago
parent f7ec7f546f
commit 0ce3761c78
  1. 4
      configure

4
configure vendored

@ -872,7 +872,7 @@ check_code(){
check_cppflags(){
log check_cppflags "$@"
check_cpp "$@" <<EOF && append CPPFLAGS "$@"
int x;
#include <stdlib.h>;
EOF
}
@ -1166,7 +1166,7 @@ check_host_cpp(){
check_host_cppflags(){
log check_host_cppflags "$@"
check_host_cpp "$@" <<EOF && append host_cppflags "$@"
int x;
#include <stdlib.h>;
EOF
}

Loading…
Cancel
Save