From 2bd0610e4ef38e331e53cc559c9f5312465138c0 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Wed, 19 Dec 2007 12:40:58 +0000 Subject: [PATCH] remove direct sparse usage, rather use cgcc --- Makefile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index cfa9a57..69a0b46 100644 --- a/Makefile +++ b/Makefile @@ -129,18 +129,10 @@ tags: $(srcs) $(hdrs) ctags $(srcs) $(hdrs); \ fi -# fixes for macos -SPARSE_MACOS=-D__STDC_VERSION__=199901 -D__LP64__=0 -DSENDFILE=1 \ - -I/usr/lib/gcc/i486-linux-gnu/4.1.2/include -# sparse does not have any identity -SPARCE_FLAGS=-D__LITTLE_ENDIAN__ -D__i386__ -D__GNUC__=3 -D__GNUC_MINOR__=0 \ - -Wno-transparent-union \ - -Wall $(SPARSE_MACOS) $(CPPFLAGS) $(DEFS) - # run sparse over code check: config.mak - $(E) " CHECK" $(srcs) - $(Q) sparse $(SPARCE_FLAGS) $(srcs) + REAL_CC="$(CC)" \ + make clean pgbouncer CC=cgcc pgbouncer.pg: $(CC) -pg $(DEFS) -g -O2 $(CPPFLAGS) $(LDFLAGS) -o $@ $(srcs) $(LIBS) -- 2.40.0