Compile with pthreads
This commit is contained in:
parent
8ab4334945
commit
bdf5c8246b
12
configure.ac
12
configure.ac
@ -106,6 +106,18 @@ AC_ARG_ENABLE(minimal,
|
|||||||
])
|
])
|
||||||
AM_CONDITIONAL([MINIMAL], [test x$enable_minimal = xyes])
|
AM_CONDITIONAL([MINIMAL], [test x$enable_minimal = xyes])
|
||||||
|
|
||||||
|
AC_ARG_WITH(pthreads, AC_HELP_STRING([--with-pthreads],
|
||||||
|
[use pthreads library, or --without-pthreads to disable threading support.]),
|
||||||
|
[ ], [withval="yes"])
|
||||||
|
|
||||||
|
AS_IF([test "x$withval" = "xyes"], [
|
||||||
|
AX_PTHREAD([
|
||||||
|
AC_DEFINE(HAVE_PTHREAD, 1, [Define if you have POSIX threads libraries and header files])
|
||||||
|
LIBS="$PTHREAD_LIBS $LIBS"
|
||||||
|
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
||||||
|
CC="$PTHREAD_CC"])
|
||||||
|
])
|
||||||
|
|
||||||
AC_ARG_WITH(safecode,
|
AC_ARG_WITH(safecode,
|
||||||
[AS_HELP_STRING(--with-safecode,For maintainers only - please do not use)],
|
[AS_HELP_STRING(--with-safecode,For maintainers only - please do not use)],
|
||||||
[AS_IF([test "x$withval" = "xyes"], [
|
[AS_IF([test "x$withval" = "xyes"], [
|
||||||
|
@ -55,7 +55,7 @@ rm -f "$DONE_FILE"
|
|||||||
|
|
||||||
echo
|
echo
|
||||||
emconfigure ./configure --enable-minimal --disable-shared --prefix="$PREFIX" \
|
emconfigure ./configure --enable-minimal --disable-shared --prefix="$PREFIX" \
|
||||||
CFLAGS="$CFLAGS" && \
|
--without-pthreads CFLAGS="$CFLAGS" && \
|
||||||
emmake make clean
|
emmake make clean
|
||||||
[ $? = 0 ] || exit 1
|
[ $? = 0 ] || exit 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user