From dcd7e905755e831af27550a052cd9f2c7c0aa427 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 31 Jul 2005 05:03:28 +0000 Subject: [PATCH] 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'. --- src/ChangeLog | 9 +++++++++ src/Make.build | 3 +-- 2 files changed, 10 insertions(+), 2 deletions(-) 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 -- 2.30.2