Update Solaris thread setting for non-gcc compilers.
This commit is contained in:
parent
6a78eecf6f
commit
88a987fcfd
@ -3,9 +3,17 @@ if test "$GCC" != yes ; then
|
|||||||
CFLAGS="-O -v" # -v is like gcc -Wall
|
CFLAGS="-O -v" # -v is like gcc -Wall
|
||||||
fi
|
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
|
||||||
|
|
||||||
THREAD_SUPPORT=yes
|
THREAD_SUPPORT=yes
|
||||||
NEED_REENTRANT_FUNCS=yes # 5.6 2003-09-13
|
NEED_REENTRANT_FUNCS=yes # 5.6 2003-09-13
|
||||||
if test "$GCC" != yes
|
if test "$GCC" = yes
|
||||||
then THREAD_CPPFLAGS="-mt"
|
then THREAD_LIBS="-pthread"
|
||||||
|
else THREAD_CPPFLAGS="-mt"
|
||||||
|
THREAD_LIBS="-lpthread"
|
||||||
fi
|
fi
|
||||||
THREAD_LIBS="-pthread"
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user