Permalink
Browse files

Configure gc w/o gcj support to make it work on mingw64

Without disabling gcj, gctest fails and also gauche seems to crash
time to time on msys2 + mingw-w64.
  • Loading branch information...
shirok committed Jul 31, 2016
1 parent 1467074 commit 53f20a050d855ecfb930dd37beb0e0b4665354ce
Showing with 10 additions and 3 deletions.
  1. +3 −0 ChangeLog
  2. +7 −3 tools/gc-configure.gnu-gauche.in
View
@@ -1,5 +1,8 @@
2016-07-30 Shiro Kawai <shiro@acm.org>
* tools/gc-configure.gnu-gauche.in: Add --disable-gcj-support;
GC tests fail without it on msys2+mingw-w64.
* src/class.c (Scm_GenericObjectEqualP, Scm_GenericObjectCompare):
Use fallback routine of those gfs to handle the default case,
instead of defining (<top> <top>) method. It's cleaner, and we
@@ -7,21 +7,25 @@ set -e
# some options.
# "--enable-threads=..."
# [SK] Original Boehm GC checks gcc for the default thread support.
# Original Boehm GC checks gcc for the default thread support.
# In our case we need the thread config in sync with the main Gauche
# source tree.
#
# "-DDONT_ADD_BYTE_AT_END", "--enable-large-config"
# [SK] this is _required_ to make Gauche work correctly.
# This is _required_ to make Gauche work correctly.
#
# "--disable-gcj-support"
# This seems required on msys2+mingw-w64 platform.
#
# "--enable-handle-fork"
# [SK] this supposed to make GC in forked children work on OSX; it did
# This supposed to make GC in forked children work on OSX; it did
# work on OSX 10.7.3, but caused various failures on 10.7.4, so I disable
# it again.
# NB: The parent configure sets SHELL with their CONFIG_SHELL
${SHELL} "@srcdir@/configure" "${@}" \
--enable-threads="@GAUCHE_THREAD_TYPE@" \
--enable-large-config \
--disable-gcj-support \
CPPFLAGS="${CPPFLAGS} -DDONT_ADD_BYTE_AT_END @LOCAL_INC@" \
LDFLAGS="${LDFLAGS} @LOCAL_LIB@"

0 comments on commit 53f20a0

Please sign in to comment.