aboutsummaryrefslogtreecommitdiff
path: root/boehm-gc/configure.host
diff options
context:
space:
mode:
authorBryce McKinlay <mckinlay@redhat.com>2005-02-16 04:10:42 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2005-02-16 04:10:42 +0000
commit5909b0346cca73468ebde3e747bbe21453364a03 (patch)
tree314f8a11ca03d334447c50d10982b23142d3c8de /boehm-gc/configure.host
parent1dd8ce20fb5066513a09788b4bdc76b2d98b0ba2 (diff)
downloadgcc-5909b0346cca73468ebde3e747bbe21453364a03.zip
gcc-5909b0346cca73468ebde3e747bbe21453364a03.tar.gz
gcc-5909b0346cca73468ebde3e747bbe21453364a03.tar.bz2
re PR libgcj/19823 (java fails with non-executable memory)
2005-02-15 Bryce McKinlay <mckinlay@redhat.com> PR libgcj/19823 * configure.host: Set gc_use_mmap on *-linux*. * configure.ac: Define USE_MMAP if gc_use_mmap is set. * include/private/gc_priv.h: Include gc_config.h. * configure, include/gc_config.h.in: Rebuilt. From-SVN: r95094
Diffstat (limited to 'boehm-gc/configure.host')
-rw-r--r--boehm-gc/configure.host9
1 files changed, 9 insertions, 0 deletions
diff --git a/boehm-gc/configure.host b/boehm-gc/configure.host
index a98a0a7..97f4dac 100644
--- a/boehm-gc/configure.host
+++ b/boehm-gc/configure.host
@@ -18,8 +18,11 @@
# It sets the following shell variables:
# gc_cflags Special CFLAGS to use when building
+# gc_use_mmap Set to "yes" on platforms where mmap should be used instead
+# of sbrk. This will define USE_MMAP.
gc_cflags=""
+gc_use_mmap=
# We should set -fexceptions if we are using gcc and might be used
# inside something like gcj. This is the zeroth approximation:
@@ -37,6 +40,12 @@ else
esac
fi
+case "${host}" in
+ *-linux*)
+ gc_use_mmap=yes
+ ;;
+esac
+
case "${target_optspace}:${host}" in
yes:*)
gc_cflags="${gc_cflags} -Os"