Add support in bintar build script for OpenSolaris.
This commit is contained in:
parent
e926af9bf8
commit
44d2bf540d
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
# Setting cpu options.
|
# Setting cpu options.
|
||||||
get_cpuopt () {
|
get_cpuopt () {
|
||||||
|
case "$(uname -o)" in
|
||||||
|
*Linux*)
|
||||||
case "$(gcc -dumpmachine)" in
|
case "$(gcc -dumpmachine)" in
|
||||||
x86_64-*)
|
x86_64-*)
|
||||||
# gcc barfs on -march=... on x64
|
# gcc barfs on -march=... on x64
|
||||||
@ -26,6 +28,12 @@ get_cpuopt () {
|
|||||||
CPUOPT="-m32 -march=i586 -mtune=generic"
|
CPUOPT="-m32 -march=i586 -mtune=generic"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
;;
|
||||||
|
*Solaris*)
|
||||||
|
# ToDo: handle 32-bit build? For now default to 64-bit.
|
||||||
|
CPUOPT="-D__sun -m64 -mtune=athlon64"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user