< prev index next >

make/windows/build_vm_def.sh

Print this page




  35 # reason this environment variable is necessary is that it seems that
  36 # Windows truncates very long PATHs when executing shells like MKS's
  37 # sh, and it has been found that sometimes `which sh` fails.
  38 if [ "x$HOTSPOTMKSHOME" != "x" ]; then
  39  MKS_HOME="$HOTSPOTMKSHOME"
  40 else
  41  SH=`which sh`
  42  MKS_HOME=`dirname "$SH"`
  43 fi
  44 
  45 AWK="$MKS_HOME/awk.exe"
  46 if [ ! -e $AWK ]; then
  47     AWK="$MKS_HOME/gawk.exe"
  48 fi
  49 GREP="$MKS_HOME/grep.exe"
  50 SORT="$MKS_HOME/sort.exe"
  51 UNIQ="$MKS_HOME/uniq.exe"
  52 CAT="$MKS_HOME/cat.exe"
  53 RM="$MKS_HOME/rm.exe"
  54 DUMPBIN="link.exe /dump"

  55 
  56 if [ "$1" = "-nosa" ]; then
  57     echo EXPORTS > vm.def
  58     echo ""
  59     echo "***"
  60     echo "*** Not building SA: BUILD_WIN_SA != 1"
  61     echo "*** C++ Vtables NOT included in vm.def"
  62     echo "*** This jvm.dll will NOT work properly with SA."
  63     echo "***"
  64     echo "*** When in doubt, set BUILD_WIN_SA=1, clean and rebuild."
  65     echo "***"
  66     echo ""
  67     exit
  68 fi
  69 
  70 echo "EXPORTS" > vm1.def
  71 
  72 # When called from IDE the first param should contain the link version, otherwise may be nill
  73 if [ "x$1" != "x" ]; then
  74 LD_VER="$1"


  35 # reason this environment variable is necessary is that it seems that
  36 # Windows truncates very long PATHs when executing shells like MKS's
  37 # sh, and it has been found that sometimes `which sh` fails.
  38 if [ "x$HOTSPOTMKSHOME" != "x" ]; then
  39  MKS_HOME="$HOTSPOTMKSHOME"
  40 else
  41  SH=`which sh`
  42  MKS_HOME=`dirname "$SH"`
  43 fi
  44 
  45 AWK="$MKS_HOME/awk.exe"
  46 if [ ! -e $AWK ]; then
  47     AWK="$MKS_HOME/gawk.exe"
  48 fi
  49 GREP="$MKS_HOME/grep.exe"
  50 SORT="$MKS_HOME/sort.exe"
  51 UNIQ="$MKS_HOME/uniq.exe"
  52 CAT="$MKS_HOME/cat.exe"
  53 RM="$MKS_HOME/rm.exe"
  54 DUMPBIN="link.exe /dump"
  55 export VS_UNICODE_OUTPUT= 
  56 
  57 if [ "$1" = "-nosa" ]; then
  58     echo EXPORTS > vm.def
  59     echo ""
  60     echo "***"
  61     echo "*** Not building SA: BUILD_WIN_SA != 1"
  62     echo "*** C++ Vtables NOT included in vm.def"
  63     echo "*** This jvm.dll will NOT work properly with SA."
  64     echo "***"
  65     echo "*** When in doubt, set BUILD_WIN_SA=1, clean and rebuild."
  66     echo "***"
  67     echo ""
  68     exit
  69 fi
  70 
  71 echo "EXPORTS" > vm1.def
  72 
  73 # When called from IDE the first param should contain the link version, otherwise may be nill
  74 if [ "x$1" != "x" ]; then
  75 LD_VER="$1"
< prev index next >