From: Marko Kreen Date: Wed, 19 Dec 2007 12:40:58 +0000 (+0000) Subject: remove direct sparse usage, rather use cgcc X-Git-Tag: pgbouncer_1_2_rc2~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2bd0610e4ef38e331e53cc559c9f5312465138c0;p=pgbouncer remove direct sparse usage, rather use cgcc --- 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)