Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5e938d8

Browse files
committed
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.
1 parent a676b85 commit 5e938d8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Makefile.global.in

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*-makefile-*-
2-
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.182 2004/05/11 21:57:14 momjian Exp $
2+
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.183 2004/05/13 23:05:54 momjian Exp $
33

44
#------------------------------------------------------------------------------
55
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -177,6 +177,12 @@ ifeq ($(GCC), yes)
177177
CFLAGS += -Wall -Wmissing-prototypes -Wmissing-declarations
178178
endif
179179

180+
# Unixware needs threads for everything that uses libpq
181+
ifeq ($(PORTNAME),unixware)
182+
CFLAGS += "$PTHREAD_CFLAGS"
183+
endif
184+
185+
180186
# Kind-of compilers
181187

182188
YACC = @YACC@

0 commit comments

Comments
 (0)