GhostOfTheNet

Untitled

Apr 12th, 2012
102
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh                                                                      
  2.  
  3. echo "BUILD: setting env variables"
  4. ROOT_PATH=`pwd`
  5. NDK_PATH="$ROOT_PATH/ndk"
  6. TOOLS_PATH="$NDK_PATH/bin"
  7. OUT_PATH="$ROOT_PATH/out"
  8. TMP_PATH="$ROOT_PATH/tmp"
  9. MONO_PATH="$ROOT_PATH/mono-2.10.9"
  10.  
  11. export CC="gcc"
  12. export CXX="g++"
  13. export LD="ld"
  14.  
  15. export CFLAGS=""
  16. export CXXFLAGS="$CFLAGS"
  17. export LDFLAGS=""
  18.  
  19. rm -fr "$OUT_PATH"
  20. rm -fr "$TMP_PATH"
  21. mkdir -p "$OUT_PATH"
  22. mkdir -p "$TMP_PATH"
  23.                                                                            
  24. cd "$MONO_PATH"
  25.  
  26. ./configure --prefix=$TMP_PATH --exec-prefix=$TMP_PATH --disable-mcs-build
  27. echo "#define ARM_FPU_NONE 1" >> config.h
  28. echo "press enter to continue"
  29. #read TMP
  30. make clean
  31. make V=1 LDFLAGS="$LDFLAGS -all-static -pthread -lm -lrt -ldl" CFLAGS="$CFLAGS"
  32. CXXFLAGS="$CXXFLAGS"
  33. #make install
  34.  
  35. gcc -DHAVE_SGEN_GC -DHAVE_MOVING_COLLECTOR -DHAVE_WRITE_BARRIERS -I$MONO_PATH/mono/mini/../.. -I$MONO_PATH/mono/mini/../../eglib/src -I$MONO_PATH/mono/mini/../../eglib/src -I$MONO_PATH/mono/mini/../arch/arm -fno-strict-aliasing -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wl,-version-script=$MONO_PATH/mono/mini/./ldscript.mono -Wl,--export-dynamic -Wl,--whole-archive $MONO_PATH/support/.libs/libMonoPosixHelper.a -Wl,--no-whole-archive -static -pthread -o "$OUT_PATH/mono" $MONO_PATH/mono/mini/mono_sgen-main.o -Wl,--export-dynamic  $MONO_PATH/mono/mini/./.libs/libmonosgen-static.a -L$MONO_PATH/eglib/src $MONO_PATH/eglib/src/.libs/libeglib.a
  36. -lm -lrt -ldl -lpthread -pthread -lz -fPIC
RAW Paste Data