solaris 509 Bytes
Newer Older
1
if test "$GCC" != yes ; then
2
  CC="$CC -Xa"			# relaxed ISO C mode
3
  CFLAGS="$CFLAGS -O -v"		# -v is like gcc -Wall
4
fi
5

6 7
# Pick right test-and-set (TAS) code.  We need out-of-line assembler
# when not using gcc.
8
case $host in
9 10 11 12 13 14 15 16 17 18 19 20
  sparc-*-solaris*)
	if test "$GCC" != yes ; then
		need_tas=yes
		tas_file=solaris_sparc.s
	fi
    ;;
  i?86-*-solaris*)
	if test "$GCC" != yes ; then
		need_tas=yes
		tas_file=solaris_i386.s
	fi
    ;;
21 22
esac

23
# -D_POSIX_PTHREAD_SEMANTICS enables 5-arg getpwuid_r, among other things