diff options
author | Tom Lane | 2009-08-03 18:30:55 +0000 |
---|---|---|
committer | Tom Lane | 2009-08-03 18:30:55 +0000 |
commit | 7ffb14f9dbdbf0b735f9cb3b167fc848f3bd09ac (patch) | |
tree | c85c0a87498be726175366418efa1836c33094f5 /contrib/pgbench/Makefile | |
parent | 3da0dfb4b1460c3701abc8ed5f516d138dc4654c (diff) |
Portability and documentation fixes for threaded pgbench patch.
Diffstat (limited to 'contrib/pgbench/Makefile')
-rw-r--r-- | contrib/pgbench/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/pgbench/Makefile b/contrib/pgbench/Makefile index d13cb7405a4..0570705dad5 100644 --- a/contrib/pgbench/Makefile +++ b/contrib/pgbench/Makefile @@ -1,10 +1,10 @@ -# $PostgreSQL: pgsql/contrib/pgbench/Makefile,v 1.16 2007/11/10 23:59:51 momjian Exp $ +# $PostgreSQL: pgsql/contrib/pgbench/Makefile,v 1.17 2009/08/03 18:30:55 tgl Exp $ PROGRAM = pgbench OBJS = pgbench.o PG_CPPFLAGS = -I$(libpq_srcdir) -PG_LIBS = $(libpq_pgport) +PG_LIBS = $(libpq_pgport) $(PTHREAD_LIBS) ifdef USE_PGXS PG_CONFIG = pg_config @@ -16,3 +16,7 @@ top_builddir = ../.. include $(top_builddir)/src/Makefile.global include $(top_srcdir)/contrib/contrib-global.mk endif + +ifneq ($(PORTNAME), win32) +override CFLAGS += $(PTHREAD_CFLAGS) +endif |