mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-12 20:34:19 +00:00
Under Linux, don't use -ansi in thread safe grades, because if
Estimated hours taken: 0.2 scripts/mgnuc.in: Under Linux, don't use -ansi in thread safe grades, because if you do, you'll get parse errors in pthread.h where it uses sigset_t.
This commit is contained in:
@@ -275,12 +275,19 @@ case $thread_safe in
|
||||
true)
|
||||
case $FULLARCH in
|
||||
*solaris*) THREAD_OPTS="-DMR_THREAD_SAFE -DSOLARIS_THREADS \
|
||||
-D_SOLARIS_PTHREADS -D_REENTRANT";;
|
||||
-D_SOLARIS_PTHREADS -D_REENTRANT"
|
||||
;;
|
||||
|
||||
*linux*) THREAD_OPTS="-DMR_THREAD_SAFE -DLINUX_THREADS \
|
||||
-D_THREAD_SAFE -D_REENTRANT";;
|
||||
-D_THREAD_SAFE -D_REENTRANT"
|
||||
# Don't use -ansi under Linux or we get
|
||||
# parse errors at sigset_t in the pthreads
|
||||
# headers.
|
||||
ANSI_OPTS=""
|
||||
;;
|
||||
|
||||
*) THREAD_OPTS="" ;;
|
||||
*) THREAD_OPTS=""
|
||||
;;
|
||||
esac ;;
|
||||
false) THREAD_OPTS="" ;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user