117 echo "VM type: ${VMTYPE}" |
123 echo "VM type: ${VMTYPE}" |
118 # Note pthread may not be found thus invoke creation will fail to be created. |
124 # Note pthread may not be found thus invoke creation will fail to be created. |
119 # Check to ensure you have a /usr/lib/libpthread.so if you don't please look |
125 # Check to ensure you have a /usr/lib/libpthread.so if you don't please look |
120 # for /usr/lib/`uname -m`-linux-gnu version ensure to add that path to below compilation. |
126 # for /usr/lib/`uname -m`-linux-gnu version ensure to add that path to below compilation. |
121 |
127 |
122 gcc -DLINUX ${COMP_FLAG} -o invoke \ |
128 $gcc_cmd -DLINUX ${COMP_FLAG} -o invoke \ |
123 -I${COMPILEJAVA}/include -I${COMPILEJAVA}/include/linux \ |
129 -I${COMPILEJAVA}/include -I${COMPILEJAVA}/include/linux \ |
124 -L${COMPILEJAVA}/jre/lib/${ARCH}/${VMTYPE} \ |
130 -L${COMPILEJAVA}/jre/lib/${ARCH}/${VMTYPE} \ |
125 -ljvm -lpthread invoke.c |
131 -ljvm -lpthread invoke.c |
126 |
132 |
127 ./invoke |
133 ./invoke |
128 exit $? |
134 exit $? |