mirror of https://github.com/postgres/postgres
and improve tests.REL7_4_STABLE
parent
fae2adecf5
commit
227dd9b427
@ -1,14 +1,14 @@ |
||||
if test "$GCC" = yes; then |
||||
CFLAGS=-O2 |
||||
THREAD_CFLAGS="-pthread" |
||||
THREAD_CPPFLAGS="-pthread" |
||||
else |
||||
# the -Kno_host is temporary for a bug in the compiler. See -hackers |
||||
# discussion on 7-8/Aug/2003. |
||||
# when the 7.1.3UP3 or later compiler is out, we can do a version check. |
||||
CFLAGS='-O -Kinline,no_host' |
||||
THREAD_CFLAGS="-K pthread" |
||||
THREAD_CPPFLAGS="-K pthread" |
||||
fi |
||||
|
||||
SUPPORTS_THREADS=yes |
||||
NEED_REENTRANT_FUNCS=no # verified 7.1.3 2003-09-03 |
||||
THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT" |
||||
THREAD_CPPFLAGS="$THREAD_CPPFLAGS -D_REENTRANT" |
||||
|
||||
@ -0,0 +1,25 @@ |
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# Makefile for tools/thread
|
||||
#
|
||||
# Copyright (C) 2003 by PostgreSQL Global Development Team
|
||||
#
|
||||
# $Header: /cvsroot/pgsql/src/tools/thread/Attic/Makefile,v 1.1 2003/09/27 15:32:48 momjian Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
subdir = tools/thread
|
||||
top_builddir = ../../..
|
||||
include $(top_builddir)/src/Makefile.global |
||||
|
||||
override CFLAGS += $(THREAD_CPPFLAGS)
|
||||
|
||||
LDFLAGS += $(THREAD_LIBS)
|
||||
|
||||
all: thread_test |
||||
|
||||
thread_test: thread_test.o |
||||
$(CC) $(CFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@
|
||||
|
||||
clean distclean maintainer-clean: |
||||
rm -f thread_test$(X) thread_test.o
|
||||
@ -0,0 +1,8 @@ |
||||
This program should be run by developers wishing to enable threading on |
||||
new platforms. |
||||
|
||||
Run thread_test program to determine if your native libc functions are |
||||
thread-safe, or if we should use *_r functions or thread locking. |
||||
|
||||
Make sure you have added any needed 'THREAD_CPPFLAGS' and 'THREAD_LIBS' |
||||
defines to your template/${port} file before compiling this program. |
||||
Loading…
Reference in new issue