summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/backend/Makefile4
-rw-r--r--src/gtm/main/Makefile4
-rw-r--r--src/gtm/proxy/Makefile4
3 files changed, 12 insertions, 0 deletions
diff --git a/src/backend/Makefile b/src/backend/Makefile
index 905ba06414..ecca4cf36d 100644
--- a/src/backend/Makefile
+++ b/src/backend/Makefile
@@ -17,6 +17,10 @@ subdir = src/backend
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
+ifneq ($(PORTNAME), win32)
+override CFLAGS += $(PTHREAD_CFLAGS)
+endif
+
SUBDIRS = access bootstrap catalog parser commands executor foreign lib libpq \
pgxc main nodes optimizer port postmaster regex replication rewrite \
storage tcop tsearch utils $(top_builddir)/src/timezone $(top_builddir)/src/interfaces/libpq
diff --git a/src/gtm/main/Makefile b/src/gtm/main/Makefile
index dec85372ee..506685cc75 100644
--- a/src/gtm/main/Makefile
+++ b/src/gtm/main/Makefile
@@ -3,6 +3,10 @@
top_builddir=../../..
include $(top_builddir)/src/Makefile.global
+ifneq ($(PORTNAME), win32)
+override CFLAGS += $(PTHREAD_CFLAGS)
+endif
+
OBJS=main.o gtm_thread.o gtm_txn.o gtm_seq.o gtm_snap.o gtm_time.o gtm_standby.o gtm_opt.o
OTHERS= ../libpq/libpqcomm.a ../path/libgtmpath.a ../recovery/libgtmrecovery.a ../client/libgtmclient.a ../common/libgtm.a ../../port/libpgport.a
diff --git a/src/gtm/proxy/Makefile b/src/gtm/proxy/Makefile
index b2faab35eb..7d319a609d 100644
--- a/src/gtm/proxy/Makefile
+++ b/src/gtm/proxy/Makefile
@@ -3,6 +3,10 @@
top_builddir=../../..
include $(top_builddir)/src/Makefile.global
+ifneq ($(PORTNAME), win32)
+override CFLAGS += $(PTHREAD_CFLAGS)
+endif
+
OBJS=proxy_main.o proxy_thread.o proxy_utils.o gtm_proxy_opt.o
OTHERS= ../libpq/libpqcomm.a ../path/libgtmpath.a ../recovery/libgtmrecovery.a ../client/libgtmclient.a ../common/libgtm.a