]> granicus.if.org Git - pgbouncer/commitdiff
Makefile: give CFLAGS to linker
authorMarko Kreen <markokr@gmail.com>
Fri, 29 Apr 2011 15:22:11 +0000 (18:22 +0300)
committerMarko Kreen <markokr@gmail.com>
Fri, 29 Apr 2011 15:22:11 +0000 (18:22 +0300)
ACX_PTHREAD will put -pthread to CFLAGS.  This needs also to
reach linker.

Reported-by: Pierre-Emmanuel André
Makefile

index 26013938bad514ec4e84c3b6ae4dafec012b075f..d310ebb4c9d980911f66056922a396fd35c67fe4 100644 (file)
--- 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