diff options
Diffstat (limited to '')
-rw-r--r-- | gc/configure.host | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/gc/configure.host b/gc/configure.host new file mode 100644 index 0000000..da2b5b3 --- /dev/null +++ b/gc/configure.host @@ -0,0 +1,53 @@ +# configure.host + +# This shell script handles all host based configuration for the garbage +# collector. +# It sets various shell variables based on the the host and the +# configuration options. You can modify this shell script without +# needing to rerun autoconf. + +# This shell script should be invoked as +# . configure.host +# If it encounters an error, it will exit with a message. + +# It uses the following shell variables: +# host The configuration host +# host_cpu The configuration host CPU +# target_optspace --enable-target-optspace ("yes", "no", "") + +# It sets the following shell variables: +# gc_cflags Special CFLAGS to use when building + +# We should set -fexceptions if we are using gcc and might be used +# inside something like gcj. This is the zeroth approximation: +case "$host" in + *-*-linux* ) + gc_cflags=-fexceptions + ;; + *-*-hpux* ) + gc_cflags=+ESdbgasm + ;; +esac + +case "${target_optspace}:${host}" in + yes:*) + gc_cflags="${gc_cflags} -Os" + ;; + :m32r-* | :d10v-* | :d30v-*) + gc_cflags="${gc_cflags} -Os" + ;; + no:* | :*) + # Nothing. + ;; +esac + +# Set any host dependent compiler flags. +# THIS TABLE IS SORTED. KEEP IT THAT WAY. + +case "${host}" in + mips-tx39-*|mipstx39-unknown-*) + boehm_gc_cflags="${boehm_gc_cflags} -G 0" + ;; + *) + ;; +esac |