summaryrefslogtreecommitdiff
path: root/src/template/solaris
blob: 07c79e9067eb589d6571cb47663fe64d2211549d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
if test "$GCC" != yes ; then
  CC="$CC -Xa"			# relaxed ISO C mode
  CFLAGS="-O -v"		# -v is like gcc -Wall
fi

# Pick right test-and-set (TAS) code.
case $host in
  sparc-*-solaris*)  need_tas=yes; tas_file=solaris_sparc.s ;;
  i?86-*-solaris*)   need_tas=yes; tas_file=solaris_i386.s ;;
esac

# tools/thread/thread_test must be run
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"
fi