Mercurial > hg > graal-compiler
comparison agent/make/saenv64.sh @ 14298:4fe850c65ed1
7010732: SA_ALTROOT only works if running the SA tools from their build directory.
Summary: fixed SA packaging scripts
Reviewed-by: sla, kevinw
author | dsamersoff |
---|---|
date | Tue, 28 Jan 2014 14:45:39 +0400 |
parents | f6f3bb0ee072 |
children | 4ca6dc0799b6 |
comparison
equal
deleted
inserted
replaced
14293:7327ec5e661e | 14298:4fe850c65ed1 |
---|---|
41 echo "unknown CPU, only sparcv9, amd64 are supported!" | 41 echo "unknown CPU, only sparcv9, amd64 are supported!" |
42 exit 1 | 42 exit 1 |
43 fi | 43 fi |
44 fi | 44 fi |
45 | 45 |
46 # configure audit helper library if SA_ALTROOT is set | 46 # configure audit helper library |
47 if [ -n "$SA_ALTROOT" ]; then | 47 LD_AUDIT_64=$STARTDIR/../src/os/solaris/proc/$CPU/libsaproc_audit.so |
48 LD_AUDIT_64=$STARTDIR/../src/os/solaris/proc/$CPU/libsaproc_audit.so | 48 if [ ! -f $LD_AUDIT_64 ]; then |
49 export LD_AUDIT_64 | 49 LD_AUDIT_64=$STARTDIR/solaris/$CPU/libsaproc_audit.so |
50 if [ ! -f $LD_AUDIT_64 ]; then | |
51 echo "SA_ALTROOT is set and can't find libsaproc_audit.so." | |
52 echo "Make sure to build it with 'make natives'." | |
53 exit 1 | |
54 fi | |
55 fi | 50 fi |
51 | |
52 if [ ! -f $LD_AUDIT_64 ]; then | |
53 echo "Can't find libsaproc_audit.so." | |
54 echo "Make sure to build it with 'make natives'." | |
55 exit 1 | |
56 fi | |
57 | |
58 export LD_AUDIT_64 | |
56 SA_LIBPATH=$STARTDIR/../src/os/solaris/proc/$CPU:$STARTDIR/solaris/$CPU | 59 SA_LIBPATH=$STARTDIR/../src/os/solaris/proc/$CPU:$STARTDIR/solaris/$CPU |
57 | 60 |
58 OPTIONS="-Dsa.library.path=$SA_LIBPATH -Dsun.jvm.hotspot.debugger.useProcDebugger" | 61 OPTIONS="-Dsa.library.path=$SA_LIBPATH -Dsun.jvm.hotspot.debugger.useProcDebugger" |
59 | 62 |
60 if [ "x$SA_JAVA" = "x" ]; then | 63 if [ "x$SA_JAVA" = "x" ]; then |