From: Ben Pfaff Date: Sun, 31 Jul 2005 05:03:28 +0000 (+0000) Subject: Don't append -ansi to AM_CFLAGS for GCC. Using -ansi changes the X-Git-Tag: v0.4.0~24 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcd7e905755e831af27550a052cd9f2c7c0aa427;p=pspp-builds.git Don't append -ansi to AM_CFLAGS for GCC. Using -ansi changes the behavior of header files significantly. It causes __STRICT_ANSI__ to be defined, and some headers interpret that as cause to e.g. not use `long long' or __attribute__. The former example is bad when off_t is supposed to be `long long'. --- diff --git a/src/ChangeLog b/src/ChangeLog index 98b6ea6a..78208e45 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,12 @@ +Sat Jul 30 22:01:32 2005 Ben Pfaff + + * Make.build: Don't append -ansi to AM_CFLAGS for GCC. Using + -ansi changes the behavior of header files significantly. + It causes __STRICT_ANSI__ to be defined, and some headers + interpret that as cause to e.g. not use `long long' or + __attribute__. The former example is bad when off_t is supposed + to be `long long'. + Sun Jul 24 20:26:59 2005 Ben Pfaff Get rid of dependency on libgmp by writing our own routine for diff --git a/src/Make.build b/src/Make.build index 2cab5e15..aad9687c 100644 --- a/src/Make.build +++ b/src/Make.build @@ -7,8 +7,7 @@ AM_CFLAGS= if cc_is_gcc AM_CFLAGS+=-Wall -W -Wwrite-strings -Wstrict-prototypes \ --Wpointer-arith -Wno-sign-compare -Wmissing-prototypes \ --ansi +-Wpointer-arith -Wno-sign-compare -Wmissing-prototypes endif if unix