------------------------------------------------------------
revno: 2806
committer: [email protected]
branch nick: work-5.1
timestamp: Thu 2010-01-28 23:34:22 +0100
message:
  Add support in bintar build script for OpenSolaris.
modified:
  BUILD/util.sh


--
lp:maria
https://code.launchpad.net/~maria-captains/maria/5.1

Your team Maria developers is subscribed to branch lp:maria.
To unsubscribe from this branch go to 
https://code.launchpad.net/~maria-captains/maria/5.1/+edit-subscription.
=== modified file 'BUILD/util.sh'
--- BUILD/util.sh	2010-01-07 12:02:18 +0000
+++ BUILD/util.sh	2010-01-28 22:34:22 +0000
@@ -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 @@
                 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.

_______________________________________________
Mailing list: https://launchpad.net/~maria-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~maria-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to