forked from shirok/Gauche
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgc-configure.gnu-gauche.in
31 lines (27 loc) · 1.01 KB
/
gc-configure.gnu-gauche.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
set -e
# This is invoked by the main configure script, via gc/configure.gnu,
# which allows us to intercept the call to gc/configure to override
# some options.
# "--enable-threads=..."
# 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"
# This is _required_ to make Gauche work correctly.
#
# "--disable-gcj-support"
# This seems required on msys2+mingw-w64 platform.
#
# "--enable-handle-fork"
# 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@"