]> granicus.if.org Git - postgresql/commitdiff
Update gcc solaris flags.
authorBruce Momjian <bruce@momjian.us>
Thu, 25 Mar 2004 22:12:37 +0000 (22:12 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 25 Mar 2004 22:12:37 +0000 (22:12 +0000)
src/template/solaris

index 6114c3c1c8ff8a484c6bc0d0f1cd246e63524f0c..034bb914160ed4f56416839375dae5fe806b1b2a 100644 (file)
@@ -11,9 +11,8 @@ esac
 
 # tools/thread/thread_test must be run
 # -D_POSIX_PTHREAD_SEMANTICS enables 5-arg getpwuid_r, among other things
-if test "$GCC" = yes 
-then   THREAD_CPPFLAGS="-D_POSIX_PTHREAD_SEMANTICS"
-       THREAD_LIBS="-pthread"
-else   THREAD_CPPFLAGS="-mt -D_POSIX_PTHREAD_SEMANTICS"
-       THREAD_LIBS="-lpthread"
+THREAD_CPPFLAGS="-D_POSIX_PTHREAD_SEMANTICS"
+if test "$GCC" != yes 
+then   THREAD_CPPFLAGS="$THREAD_CPPFLAGS -mt"
 fi
+THREAD_LIBS="-lpthread"