diff options
| author | Bruce Momjian | 2004-04-26 04:04:42 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2004-04-26 04:04:42 +0000 |
| commit | 30a06fe2c4ef63a6b705203b0490486b8f254e6d (patch) | |
| tree | 989da42e82e085594496d9bc54bdc6b86e889e7e /src/template | |
| parent | f5b6ce7cb9f775230a5d02a99e6a181a2d5a5999 (diff) | |
Unconditionally define:
-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS
for all ports. It can't hurt if they are not supported, but it makes
our job easier for porting.
Should fix Darwin compile and other platforms without mucking with the
thread detection code.
Diffstat (limited to 'src/template')
| -rw-r--r-- | src/template/darwin | 3 | ||||
| -rw-r--r-- | src/template/freebsd | 5 | ||||
| -rw-r--r-- | src/template/linux | 3 | ||||
| -rw-r--r-- | src/template/solaris | 1 | ||||
| -rw-r--r-- | src/template/unixware | 3 |
5 files changed, 0 insertions, 15 deletions
diff --git a/src/template/darwin b/src/template/darwin index bffb0d4ea0..baf462baf6 100644 --- a/src/template/darwin +++ b/src/template/darwin @@ -4,6 +4,3 @@ CC="$CC -no-cpp-precomp" # Select appropriate semaphore support USE_NAMED_POSIX_SEMAPHORES=1 - -# verified Mac OS X 10.3.3, Darwin Kernel Version 7.3.0, 2004-04-07 -PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS" diff --git a/src/template/freebsd b/src/template/freebsd index f4a1610318..718359e07c 100644 --- a/src/template/freebsd +++ b/src/template/freebsd @@ -1,8 +1,3 @@ case $host_cpu in alpha*) CFLAGS="-O";; # alpha has problems with -O2 esac - -case $host_os in - freebsd2*|freebsd3*|freebsd4*) ;; - *) PTHREAD_LIBS="c_r";; # do we need this? 2004-04-23 -esac diff --git a/src/template/linux b/src/template/linux index 95c1b182fe..dfb391ea54 100644 --- a/src/template/linux +++ b/src/template/linux @@ -1,5 +1,2 @@ # Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise CPPFLAGS="-D_GNU_SOURCE" - -# tools/thread/thread_test must be run -PTHREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS" diff --git a/src/template/solaris b/src/template/solaris index d6d9fbc794..f2e7aaa047 100644 --- a/src/template/solaris +++ b/src/template/solaris @@ -10,4 +10,3 @@ case $host in esac # -D_POSIX_PTHREAD_SEMANTICS enables 5-arg getpwuid_r, among other things -PTHREAD_CFLAGS="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" diff --git a/src/template/unixware b/src/template/unixware index e7e63f65da..9dd9d88a6e 100644 --- a/src/template/unixware +++ b/src/template/unixware @@ -24,8 +24,5 @@ __EOF__ PTHREAD_CFLAGS="-Kpthread" fi -# tools/thread/thread_test must be run -PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT" - # Disabled because flags are required for all apps using libpq. # Waiting to see if other platforms need this too. 2004-03-22 |
