summaryrefslogtreecommitdiff
path: root/build/make/configure.sh
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2010-09-30 15:36:00 -0400
committerJohn Koleszar <jkoleszar@google.com>2010-10-25 16:20:14 -0400
commit53f61ce226ed6c84ca7036839d1c9efa6832cb48 (patch)
treed72a06d431d7a3c86558e24daf3fbe5e862d9656 /build/make/configure.sh
parentc3fd2c4ea7432cf568165f7da6d99140c1f0957f (diff)
downloadlibvpx-53f61ce226ed6c84ca7036839d1c9efa6832cb48.tar
libvpx-53f61ce226ed6c84ca7036839d1c9efa6832cb48.tar.gz
libvpx-53f61ce226ed6c84ca7036839d1c9efa6832cb48.tar.bz2
libvpx-53f61ce226ed6c84ca7036839d1c9efa6832cb48.zip
Add sparc-solaris-gcc as a build target.
Solaris 10 requires -lposix4 to build successfully on gcc. I only have a Sparc machine to test with on Solaris 10, but this change leaves OpenSolaris x86 in a usable state w/ gnu-generic. I am of the belief that this change should fix Solaris 10 on Sparc, but will leave other Solaris architectures as is. If someone has an x86 Solaris 10 machine to test on, they may add x86-solaris-gcc to libvpx/configure and give it a go. Change-Id: I17a282028bb4d3e9fd8764159f95665160f7b62a
Diffstat (limited to 'build/make/configure.sh')
-rwxr-xr-xbuild/make/configure.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/build/make/configure.sh b/build/make/configure.sh
index e20f0d133..cdd55ebd8 100755
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -532,6 +532,9 @@ process_common_toolchain() {
*powerpc*)
tgt_isa=ppc32
;;
+ *sparc*)
+ tgt_isa=sparc
+ ;;
esac
# detect tgt_os
@@ -551,6 +554,9 @@ process_common_toolchain() {
*linux*|*bsd*)
tgt_os=linux
;;
+ *solaris2.10)
+ tgt_os=solaris
+ ;;
esac
if [ -n "$tgt_isa" ] && [ -n "$tgt_os" ]; then
@@ -602,6 +608,13 @@ process_common_toolchain() {
;;
esac
+ # Handle Solaris variants. Solaris 10 needs -lposix4
+ case ${toolchain} in
+ *-solaris-*)
+ add_extralibs -lposix4
+ ;;
+ esac
+
# Process ARM architecture variants
case ${toolchain} in
arm*|iwmmxt*)