Skip to content
Permalink
Browse files
support Erlang/OTP R15B
  • Loading branch information
dch committed Jan 10, 2012
1 parent 7f93826 commit 46777874e4beb7588ca227af5ffec919952b48cc
Showing 3 changed files with 23 additions and 5 deletions.
@@ -209,18 +209,20 @@ via `setenv /release /x86` again

cd $RELAX
DEST=`pwd`/icu
tar xzf bits/icu4c-4_4_2-src.tgz
tar xzf bits/icu4c-4_6_1-src.tgz
cd $DEST/source && ./runConfigureICU Cygwin/MSVC --prefix=$DEST
make && make install
cp $DEST/lib/*.dll $DEST/bin/

* compiling under cygwin is likely also to work for MSVC10
* compiling under cygwin is likely also to work for MSVC10 if a unified
build process is required.

# LibcURL
################################################################################
LibcURL is only required for versions of CouchDB < 1.1.1 where it is embedded
in couchjs.exe. Trunk and future releases will have this as an optional include.


* download [LibcURL] source from (http://curl.haxx.se/)
* NB when using SDK7.0 I needed to `copy %windir%\system32\notepad.exe c:\relax\bin\bscmake.exe`
* either re-use the "shell.cmd" from before, or open a Windows SDK prompt
@@ -18,7 +18,7 @@ echo doing sanity checks
# here we want to see that junction points are set up and
# rebuild path from scratch as ./otp_build env_win32 gets it wrong
# first up are erlang build helper scripts
PATH=$ERL_TOP/release/win32/erts-$ERTS_VSN/bin:$ERL_TOP/erts/etc/win32/cygwin_tools/vc:$ERL_TOP/erts/etc/win32/cygwin_tools
PATH=$ERL_TOP/bootstrap/bin:$ERL_TOP/release/win32/erts-$ERTS_VSN/bin:$ERL_TOP/erts/etc/win32/cygwin_tools/vc:$ERL_TOP/erts/etc/win32/cygwin_tools

# then MSVC9 binaries using the new junction points
###PATH=$PATH:/cygdrive/c/PROGRA~2/MICROS~1.0/Common7/IDE:/cygdrive/c/PROGRA~2/MICROS~1.0/VC/BIN:/cygdrive/c/PROGRA~2/MICROS~1.0/Common7/Tools:/cygdrive/c/PROGRA~2/MICROS~1.0/VC/VCPACK~1
@@ -57,14 +57,17 @@ AR="ar.sh"
RANLIB="true"
OVERRIDE_CONFIG_CACHE="$ERL_TOP/erts/autoconf/win32.config.cache"
OVERRIDE_CONFIG_CACHE_STATIC="$ERL_TOP/erts/autoconf/win32.config.cache.static"
OVERRIDE_TARGET="win32"
WIN32_WRAPPER_PATH="$ERL_TOP/erts/etc/win32/cygwin_tools/vc:$ERL_TOP/erts/etc/win32/cygwin_tools"

CC_SH_DEBUG_LOG=$TMP/cc_r$OTP_VER.log
LD_SH_DEBUG_LOG=$TMP/ld_r$OTP_VER.log
RC_SH_DEBUG_LOG=$TMP/rc_r$OTP_VER.log
MD_SH_DEBUG_LOG=$TMP/md_r$OTP_VER.log
MC_SH_DEBUG_LOG=$TMP/mc_r$OTP_VER.log

export OVERRIDE_TARGET CC CXX AR RANLIB OVERRIDE_CONFIG_CACHE_STATIC OVERRIDE_CONFIG_CACHE INCLUDE LIB LIBPATH LINK CL PATH TMP CC_SH LD_SH RC_SH MD_SH MC_SH ERL_TOP ERTS_VSN OTP_VER SHELL RELAX GLAZIER
export OVERRIDE_TARGET CC CXX AR RANLIB OVERRIDE_CONFIG_CACHE_STATIC OVERRIDE_CONFIG_CACHE INCLUDE LIB LIBPATH LINK CL PATH TMP CC_SH LD_SH RC_SH MD_SH MC_SH ERL_TOP ERTS_VSN OTP_VER SHELL RELAX GLAZIER WIN32_WRAPPER_PATH OVERRIDE_TARGET


# first change to $RELAX as if erlang tar.gz are not extracted the latter will fail
cd $RELAX
@@ -32,13 +32,19 @@ set LIB=%LIB%;%SSL_PATH%\lib;%CURL_PATH%\lib;%ICU_PATH%\lib;%ZLIB_PATH%\lib;
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::check which version of erlang setup we want
:: choice.exe exists on all windows platforms since MSDOS but not on XP
set /p choice=press 1 for R14b01, 3 for R14b03, 4 for R14b04, 0 (or wait) to exit to the shell
echo select:
echo 3 for R14b03
echo 4 for R14b04
echo 5 for R15B
echo 1 for R15b01
set /p choice=or 0 to exit to the shell.
:: then get to unix goodness as fast as possible
if /i "%choice%"=="0" goto win_shell
::::if /i "%choice%"=="2" goto R......
if /i "%choice%"=="3" goto R14B03
if /i "%choice%"=="4" goto R14B04
if /i "%choice%"=="5" goto R15B
if /i "%choice%"=="1" goto R15B01
:: else
goto eof

@@ -56,6 +62,13 @@ set ERTS_VSN=5.9
set OTP_REL=R15B
goto unix_shell

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:R15B01
set ERL_TOP=/relax/otp_src_R15B01
set ERTS_VSN=5.9.1
set OTP_REL=R15B01
goto unix_shell

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:R14B04
set ERL_TOP=/relax/otp_src_R14B04

0 comments on commit 4677787

Please sign in to comment.