hotspot/agent/make/saenv.sh
changeset 4095 6e0acfda1d47
parent 3795 6227ff014cfe
child 5547 f4b087cbb361
equal deleted inserted replaced
4094:1f424b2b2171 4095:6e0acfda1d47
    46      SA_LIBPATH=$STARTDIR/../src/os/linux/i386:$STARTDIR/linux/i386
    46      SA_LIBPATH=$STARTDIR/../src/os/linux/i386:$STARTDIR/linux/i386
    47      OPTIONS="-Dsa.library.path=$SA_LIBPATH"
    47      OPTIONS="-Dsa.library.path=$SA_LIBPATH"
    48      CPU=i386
    48      CPU=i386
    49    fi
    49    fi
    50 else
    50 else
    51    LD_AUDIT_32=$STARTDIR/../src/os/solaris/proc/`uname -p`/libsaproc_audit.so
    51    # configure audit helper library if SA_ALTROOT is set
    52    export LD_AUDIT_32
    52    if [ -n "$SA_ALTROOT" ]; then
       
    53      LD_AUDIT_32=$STARTDIR/../src/os/solaris/proc/`uname -p`/libsaproc_audit.so
       
    54      export LD_AUDIT_32
       
    55      if [ ! -f $LD_AUDIT_32 ]; then
       
    56        echo "SA_ALTROOT is set and can't find libsaproc_audit.so."
       
    57        echo "Make sure to build it with 'make natives'."
       
    58        exit 1
       
    59      fi
       
    60    fi
    53    SA_LIBPATH=$STARTDIR/../src/os/solaris/proc/`uname -p`:$STARTDIR/solaris/`uname -p`
    61    SA_LIBPATH=$STARTDIR/../src/os/solaris/proc/`uname -p`:$STARTDIR/solaris/`uname -p`
    54    OPTIONS="-Dsa.library.path=$SA_LIBPATH -Dsun.jvm.hotspot.debugger.useProcDebugger"
    62    OPTIONS="-Dsa.library.path=$SA_LIBPATH -Dsun.jvm.hotspot.debugger.useProcDebugger"
    55    CPU=sparc
    63    CPU=sparc
    56 fi
    64 fi
    57 
    65