fix configuration for QNX

Patch from Tobias Hammer.

Closes PR 13265
This commit is contained in:
Matthew Flatt 2012-11-16 06:17:10 -07:00
parent a4b5336709
commit 9ef485d802
3 changed files with 16 additions and 6 deletions

10
src/configure vendored
View File

@ -2402,6 +2402,8 @@ INSTALL_SETUP_FLAGS=
STRIP_DEBUG=":"
use_flag_pthread=yes
###### OSKit stuff #######
if test "${enable_oskit}" = "yes" ; then
@ -4103,6 +4105,7 @@ case "$host_os" in
;;
nto-qnx*)
enable_sgc=yes
use_flag_pthread=no
LIBS="$LIBS -lsocket -Wl,--export-dynamic"
;;
*)
@ -8611,9 +8614,10 @@ fi
############### pthread ###################
if test "${enable_pthread}" = "yes" ; then
# FIXME: the following two flags are GCC-specific:
PREFLAGS="$PREFLAGS -pthread"
LDFLAGS="$LDFLAGS -pthread"
if test "${use_flag_pthread}" = "yes" ; then
PREFLAGS="$PREFLAGS -pthread"
LDFLAGS="$LDFLAGS -pthread"
fi
cat >>confdefs.h <<\_ACEOF
#define USE_PTHREAD_INSTEAD_OF_ITIMER 1

View File

@ -335,6 +335,8 @@ INSTALL_SETUP_FLAGS=
STRIP_DEBUG=":"
use_flag_pthread=yes
###### OSKit stuff #######
if test "${enable_oskit}" = "yes" ; then
@ -641,6 +643,7 @@ case "$host_os" in
;;
nto-qnx*)
enable_sgc=yes
use_flag_pthread=no
LIBS="$LIBS -lsocket -Wl,--export-dynamic"
;;
*)
@ -1071,9 +1074,10 @@ fi
############### pthread ###################
if test "${enable_pthread}" = "yes" ; then
# FIXME: the following two flags are GCC-specific:
PREFLAGS="$PREFLAGS -pthread"
LDFLAGS="$LDFLAGS -pthread"
if test "${use_flag_pthread}" = "yes" ; then
PREFLAGS="$PREFLAGS -pthread"
LDFLAGS="$LDFLAGS -pthread"
fi
AC_DEFINE(USE_PTHREAD_INSTEAD_OF_ITIMER, 1, [Pthread timer enabled])
[ msg="whether pthread_rwlock is available" ]

View File

@ -965,6 +965,8 @@
# define FLAGS_ALREADY_SET
# define USE_DYNAMIC_FDSET_SIZE
#if defined(i386)
# define MZ_USE_JIT_I386
# define MZ_JIT_USE_MPROTECT