diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2017-06-08 11:40:36 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2017-06-08 11:40:36 +0300 |
commit | 8240ed0e941b8be48715f89ee074810f6cb54fe0 (patch) | |
tree | a8e4d209b7f8ce06d4e0a46592569f372a8c08e9 /configure.ac | |
parent | 594e1f8c0b370a1b3edfeb23de16866120c544c6 (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.ac | 9 |
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.]) |