]> granicus.if.org Git - gc/commitdiff
Define GC_LINUX_THREADS, NO_EXECUTE_PERMISSION in configure for NaCl
authorElijah Taylor <elijahtaylor@google.com>
Fri, 17 Dec 2010 00:26:34 +0000 (16:26 -0800)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 1 Oct 2015 21:05:05 +0000 (00:05 +0300)
(Apply part of commit 14b353e from 'mono_libgc' branch.)

* configure.ac: Handle *-*-nacl* (define GC_LINUX_THREADS and
NO_EXECUTE_PERMISSION).

configure.ac

index a72787a47d6479a0deab772a4a7ad1bf19a0c4da..3260e7dabe2f65a26b18eaf7a056349efb88d124 100644 (file)
@@ -187,7 +187,7 @@ case "$THREADS" in
         AC_DEFINE(THREAD_LOCAL_ALLOC)
         AC_MSG_WARN("Explicit GC_INIT() calls may be required.");
         ;;
-     *-*-linux*)
+     *-*-linux* | *-*-nacl*)
         AC_DEFINE(GC_LINUX_THREADS)
         AC_DEFINE(_REENTRANT)
         ;;
@@ -607,6 +607,9 @@ case "$host" in
  ia64-*-*)
     machdep="ia64_save_regs_in_stack.lo"
     ;;
+ *-*-nacl*)
+    AC_DEFINE(NO_EXECUTE_PERMISSION)
+    ;;
 esac
 AC_MSG_RESULT($machdep)
 addobjs="$addobjs $machdep"