From 0577e929ef896944b2f852f0c3071684e9b282aa Mon Sep 17 00:00:00 2001 From: Robbie Harwood Date: Mon, 30 Nov 2015 16:22:53 -0500 Subject: Set C standard used to gnu99 gcc5 changed the default standard; in order to support older platforms, specify our target explicitly. Setting the C stanndard to c99 doesn't work (it really does need to be a gnu standard), and there is not yet an autoconf macro for C11 support. See also: https://gcc.gnu.org/gcc-5/changes.html See also: https://www.gnu.org/software/autoconf/manual/autoconf-2.64/html_node/C-Compiler.html Signed-off-by: Robbie Harwood Reviewed-by: Simo Sorce --- proxy/configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'proxy') diff --git a/proxy/configure.ac b/proxy/configure.ac index 3cd885d..409584d 100644 --- a/proxy/configure.ac +++ b/proxy/configure.ac @@ -9,6 +9,7 @@ m4_ifdef([AC_USE_SYSTEM_EXTENSIONS], [AC_USE_SYSTEM_EXTENSIONS], [AC_GNU_SOURCE]) +AC_PROG_CC_C99 CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" AC_CONFIG_SRCDIR([BUILD.txt]) -- cgit