Commit 0ce3761c authored by Diego Biurrun's avatar Diego Biurrun

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

This ensures that added CPPFLAGS are validated against libc headers.
parent f7ec7f54
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment