Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Unity-Technologies/bdwgc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2017-06-08 11:40:36 +0300
committerIvan Maidanski <ivmai@mail.ru>2017-06-08 11:40:36 +0300
commit8240ed0e941b8be48715f89ee074810f6cb54fe0 (patch)
treea8e4d209b7f8ce06d4e0a46592569f372a8c08e9 /configure.ac
parent594e1f8c0b370a1b3edfeb23de16866120c544c6 (diff)
Fix pthread_start compilation if single-obj-compilation (Linux)
* Makefile.am [SINGLE_GC_OBJ && PTHREAD_START_STANDALONE] (AM_CPPFLAGS): Add -DGC_PTHREAD_START_STANDALONE. * Makefile.am [SINGLE_GC_OBJ && PTHREAD_START_STANDALONE] (libgc_la_SOURCES): Add pthread_start.c entry. * Makefile.am: Add bank lines (to improve readability). * configure.ac [*-*-*linux*]: Add AM_CONDITIONAL(PTHREAD_START_STANDALONE).
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index ed2ee642..65b977e0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -346,17 +346,20 @@ AM_CONDITIONAL(THREAD_LOCAL_ALLOC,
compiler_suncc=no
case "$host" in
- powerpc-*-darwin*)
+ *-*-*linux*)
+ AM_CONDITIONAL(PTHREAD_START_STANDALONE, test x$THREADS = xposix)
+ ;;
+ powerpc-*-darwin*)
powerpc_darwin=true
;;
- *-*-solaris*)
+ *-*-solaris*)
if test "$GCC" != yes; then
# Solaris SunCC
compiler_suncc=yes
CFLAGS="-O $CFLAGS"
fi
;;
- *-*-wince*)
+ *-*-wince*)
if test "$enable_gc_debug" != "no"; then
AC_DEFINE([GC_READ_ENV_FILE], 1,
[Read environment variables from the GC 'env' file.])