21 # or visit www.oracle.com if you need additional information or have any |
21 # or visit www.oracle.com if you need additional information or have any |
22 # questions. |
22 # questions. |
23 # |
23 # |
24 # |
24 # |
25 |
25 |
|
26 # |
|
27 # This file has been modified by Loongson Technology in 2015. These |
|
28 # modifications are Copyright (c) 2015 Loongson Technology, and are made |
|
29 # available on the same license terms set forth above. |
|
30 # |
|
31 |
26 # This file sets common environment variables for all SA scripts |
32 # This file sets common environment variables for all SA scripts |
27 |
33 |
28 OS=`uname` |
34 OS=`uname` |
29 STARTDIR=`(cd \`dirname $0 \`; pwd)` |
35 STARTDIR=`(cd \`dirname $0 \`; pwd)` |
30 ARCH=`uname -m` |
36 ARCH=`uname -m` |
40 CPU=ia64 |
46 CPU=ia64 |
41 elif [ "$ARCH" = "x86_64" ] ; then |
47 elif [ "$ARCH" = "x86_64" ] ; then |
42 SA_LIBPATH=$STARTDIR/../src/os/linux/amd64:$STARTDIR/linux/amd64 |
48 SA_LIBPATH=$STARTDIR/../src/os/linux/amd64:$STARTDIR/linux/amd64 |
43 OPTIONS="-Dsa.library.path=$SA_LIBPATH" |
49 OPTIONS="-Dsa.library.path=$SA_LIBPATH" |
44 CPU=amd64 |
50 CPU=amd64 |
|
51 elif [ "$ARCH" = "mips64" ] ; then |
|
52 SA_LIBPATH=$STARTDIR/../src/os/linux/mips:$STARTDIR/linux/mips |
|
53 OPTIONS="-Dsa.library.path=$SA_LIBPATH" |
|
54 CPU=mips |
45 else |
55 else |
46 SA_LIBPATH=$STARTDIR/../src/os/linux/i386:$STARTDIR/linux/i386 |
56 SA_LIBPATH=$STARTDIR/../src/os/linux/i386:$STARTDIR/linux/i386 |
47 OPTIONS="-Dsa.library.path=$SA_LIBPATH" |
57 OPTIONS="-Dsa.library.path=$SA_LIBPATH" |
48 CPU=i386 |
58 CPU=i386 |
49 fi |
59 fi |