From 3f41675f6a34a55e248b0c8a84ec559102259e3c Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Fri, 14 May 2004 00:03:07 +0000
Subject: [PATCH] Move unixware thread stuff into Makefile.unixware.

---
 src/Makefile.global.in          | 8 +-------
 src/makefiles/Makefile.unixware | 5 +++++
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index c67eb9d0f51..1f74e2fa4c1 100644
--- a/src/Makefile.global.in
+++ b/src/Makefile.global.in
@@ -1,5 +1,5 @@
 # -*-makefile-*-
-# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.183 2004/05/13 23:05:54 momjian Exp $
+# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.184 2004/05/14 00:03:07 momjian Exp $
 
 #------------------------------------------------------------------------------
 # All PostgreSQL makefiles include this file and use the variables it sets,
@@ -177,12 +177,6 @@ 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@
diff --git a/src/makefiles/Makefile.unixware b/src/makefiles/Makefile.unixware
index 9e4d715932a..04eebb68167 100644
--- a/src/makefiles/Makefile.unixware
+++ b/src/makefiles/Makefile.unixware
@@ -30,3 +30,8 @@ endif
 	$(CC) $(SO_FLAGS) -o $@ $<
 
 sqlmansect = 5sql
+
+# Unixware needs threads for everything that uses libpq
+CFLAGS += "$PTHREAD_CFLAGS"
+
+
-- 
GitLab