Skip to content

Instantly share code, notes, and snippets.

@melpon
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save melpon/6bcd1f6a0bd5665698eb to your computer and use it in GitHub Desktop.
Save melpon/6bcd1f6a0bd5665698eb to your computer and use it in GitHub Desktop.
mono 4.0.1 のビルド
# apt-get install git autoconf libtool automake
git clone https://github.com/mono/mono.git
cd mono
git checkout mono-4.0.1.44
patch configure.ac /path/to/patch/configure.ac.patch
./autogen.sh --prefix=/path/to/install --disable-nls
make get-monolite-latest
make EXTERNAL_MCS=${PWD}/mcs/class/lib/monolite/basic.exe
make install
diff --git a/configure.ac b/configure.ac
index 1b499e5..445de25 100644
--- a/configure.ac
+++ b/configure.ac
@@ -343,6 +343,8 @@ case "$host" in
libdl="-ldl"
;;
esac
+CPPFLAGS="`echo $CPPFLAGS | sed -e 's/-DUSE_MMAP//'`"
+CPPFLAGS="`echo $CPPFLAGS | sed -e 's/-DUSE_MUNMAP//'`"
AC_MSG_RESULT(ok)
if test x$need_link_unlink = xyes; then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment