summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-05-13 23:05:54 +0000
committerBruce Momjian <bruce@momjian.us>2004-05-13 23:05:54 +0000
commit5e938d831aee7ea44cc6d791ee13800436f771bb (patch)
tree1de2268f94c871dfa3a6a7de10a31b0aa9d46464 /src
parenta676b852e8128212d2a357e2b4f32cca16daf0d7 (diff)
Force thread flags for all Unixware builds if threading is requested.
This is required because once you link with a library that uses threads, all references to that library have to use thread flags.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.global.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index e87c1ba8efc..c67eb9d0f51 100644
--- a/src/Makefile.global.in
+++ b/src/Makefile.global.in
@@ -1,5 +1,5 @@
# -*-makefile-*-
-# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.182 2004/05/11 21:57:14 momjian Exp $
+# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.183 2004/05/13 23:05:54 momjian Exp $
#------------------------------------------------------------------------------
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -177,6 +177,12 @@ ifeq ($(GCC), yes)
CFLAGS += -Wall -Wmissing-prototypes -Wmissing-declarations
endif
+# Unixware needs threads for everything that uses libpq
+ifeq ($(PORTNAME),unixware)
+ CFLAGS += "$PTHREAD_CFLAGS"
+endif
+
+
# Kind-of compilers
YACC = @YACC@