1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-15 02:22:24 +03:00

Allow AIX to use --enable-thread-safety by passing PTHREAD_LIBS to

binary compiles, and adjust configure tests for AIX.
This commit is contained in:
Bruce Momjian
2004-12-16 17:48:29 +00:00
parent cd380b99cd
commit b5498167d7
5 changed files with 49 additions and 35 deletions

View File

@@ -1,5 +1,5 @@
# -*-makefile-*-
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.205 2004/11/19 00:41:38 tgl Exp $
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.206 2004/12/16 17:48:29 momjian Exp $
#------------------------------------------------------------------------------
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -308,6 +308,12 @@ endif
libpq = -L$(libpq_builddir) -lpq
# AIX libraries do not remember their required libs so we have to force
# thread dependent libraires in the link
ifeq ($(PORTNAME), aix)
libpq += $(PTHREAD_LIBS)
endif
submake-libpq:
$(MAKE) -C $(libpq_builddir) all
@@ -346,13 +352,13 @@ ifneq ($(CUSTOM_COPT),)
endif
ifdef COPT
CFLAGS+= $(COPT)
LDFLAGS+= $(COPT)
CFLAGS += $(COPT)
LDFLAGS += $(COPT)
endif
ifdef PROFILE
CFLAGS+= $(PROFILE)
LDFLAGS+= $(PROFILE)
CFLAGS += $(PROFILE)
LDFLAGS += $(PROFILE)
endif

View File

@@ -33,5 +33,3 @@ sqlmansect = 5sql
# Unixware needs threads for everything that uses libpq
CFLAGS += $(PTHREAD_CFLAGS)