7 # this script builds a compiler for 32-bit NaCl code
8 # (installed in ./compiler folder)
11 readonly MONO_TRUNK_NACL=$(pwd)
13 readonly PACKAGE_NAME=nacl-mono-build
15 readonly INSTALL_PATH=${MONO_TRUNK_NACL}/compiler
21 CustomConfigureStep() {
22 Banner "Configuring ${PACKAGE_NAME}"
28 Remove ${PACKAGE_NAME}
29 MakeDir ${PACKAGE_NAME}
31 cp ../nacl-mono-config-cache ../nacl-mono-config-cache.temp
32 if [ $HOST_BITSIZE = "64" ]; then
34 CC='cc -m32' CXX='g++ -m32' \
35 --host=i386-pc-linux \
36 --build=amd64-pc-linux \
38 --prefix=${INSTALL_PATH} \
40 --enable-nacl-codegen \
41 --disable-mono-debugger \
43 --with-sigaltstack=no \
44 --cache-file=../nacl-mono-config-cache.temp
48 --prefix=${INSTALL_PATH} \
50 --enable-nacl-codegen \
51 --disable-mono-debugger \
53 --with-sigaltstack=no \
54 --cache-file=../nacl-mono-config-cache.temp
58 rm ../nacl-mono-config-cache.temp
62 MONO_NACL_ALIGN_MASK_OFF=1 make -j4
66 MONO_NACL_ALIGN_MASK_OFF=1 make install
69 CustomPackageInstall() {