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:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -33,5 +33,3 @@ sqlmansect = 5sql
|
||||
|
||||
# Unixware needs threads for everything that uses libpq
|
||||
CFLAGS += $(PTHREAD_CFLAGS)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user