From: Marko Kreen Date: Fri, 29 Apr 2011 15:22:11 +0000 (+0300) Subject: Makefile: give CFLAGS to linker X-Git-Tag: pgbouncer_1_4_2_rc1~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3b66c221a6faf7c99b19df0df01d5979c411598;p=pgbouncer Makefile: give CFLAGS to linker ACX_PTHREAD will put -pthread to CFLAGS. This needs also to reach linker. Reported-by: Pierre-Emmanuel André --- diff --git a/Makefile b/Makefile index 2601393..d310ebb 100644 --- a/Makefile +++ b/Makefile @@ -90,7 +90,7 @@ all: $(exe) $(dll) doc-all # final executable $(exe): $(builddir)/config.mak $(objs) $(E) " LD" $@ - $(Q) $(CC) -o $@ $(LDFLAGS) $(objs) $(LIBS) + $(Q) $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(objs) $(LIBS) ifeq ($(enable_debug),no) $(STRIP) $@ endif @@ -189,7 +189,7 @@ check: config.mak # profiled exe pgbouncer.pg: - $(CC) -pg $(DEFS) -g -O2 $(CPPFLAGS) $(LDFLAGS) -o $@ $(srcs) $(LIBS) + $(CC) -pg $(DEFS) -g -O2 $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $(srcs) $(LIBS) pg: pgbouncer.pg