]> granicus.if.org Git - libvpx/commitdiff
Add sparc-solaris-gcc as a build target.
authorAaron Watry <awatry@gmail.com>
Thu, 30 Sep 2010 19:36:00 +0000 (15:36 -0400)
committerJohn Koleszar <jkoleszar@google.com>
Mon, 25 Oct 2010 20:20:14 +0000 (16:20 -0400)
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

build/make/configure.sh
configure

index e20f0d133a787a62d9707a60a2bfabf8f0c9e427..cdd55ebd851ec507af6b38156721e5fa564db3e9 100755 (executable)
@@ -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*)
index 0321e1abfaf34c3b5ba0285f871283dd119bfb66..39ef83ffa1327db765fbc02ff826cdbc60089efd 100755 (executable)
--- a/configure
+++ b/configure
@@ -101,6 +101,7 @@ all_platforms="${all_platforms} ppc32-linux-gcc"
 all_platforms="${all_platforms} ppc64-darwin8-gcc"
 all_platforms="${all_platforms} ppc64-darwin9-gcc"
 all_platforms="${all_platforms} ppc64-linux-gcc"
+all_platforms="${all_platforms} sparc-solaris-gcc"
 all_platforms="${all_platforms} x86-darwin8-gcc"
 all_platforms="${all_platforms} x86-darwin8-icc"
 all_platforms="${all_platforms} x86-darwin9-gcc"