diff options
author | unknown <knielsen@knielsen-hq.org> | 2010-01-28 23:34:22 +0100 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2010-01-28 23:34:22 +0100 |
commit | 44d2bf540d38c63b6e2b45b1d9c2a61b2fc41024 (patch) | |
tree | 78abcca914d9451fdd83fa2f295ea97fb42cd62b /BUILD | |
parent | e926af9bf8d2b00c2c31a3741f65e3d5b846dffe (diff) | |
download | mariadb-git-44d2bf540d38c63b6e2b45b1d9c2a61b2fc41024.tar.gz |
Add support in bintar build script for OpenSolaris.
Diffstat (limited to 'BUILD')
-rw-r--r-- | BUILD/util.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/BUILD/util.sh b/BUILD/util.sh index 63b42db1f83..c8559184013 100644 --- a/BUILD/util.sh +++ b/BUILD/util.sh @@ -16,6 +16,8 @@ # Setting cpu options. get_cpuopt () { + case "$(uname -o)" in + *Linux*) case "$(gcc -dumpmachine)" in x86_64-*) # gcc barfs on -march=... on x64 @@ -26,7 +28,13 @@ get_cpuopt () { CPUOPT="-m32 -march=i586 -mtune=generic" ;; esac - return 0 + ;; + *Solaris*) + # ToDo: handle 32-bit build? For now default to 64-bit. + CPUOPT="-D__sun -m64 -mtune=athlon64" + ;; + esac + return 0 } # Default to a parallel build, but only if AM_MAKEFLAGS is not set. |