On Sat, 19 Apr 2008, Stefan Teleman wrote:

> Reasons for disallowing -native:
>
> the compiler will generate binaries for the hardware on which the
> build occurs. if the hardware happens to be a UltraSPARC-IIIi, these
> binaries will just not work at all on an UltraSPARC-II, and Solaris
> 10+/Nevada are supported on UltraSPARC-II.
>
> UltraSPARC-III binaries are quite much faster than US-II. but, we are
> constrained by the fact that  want a wide target audience.

I understand.  It would really nice to have a simple way to choose between 
a build for a local system (-fast, take your chances), and a distribution 
build (portable).

Anyways, here's a patch for LIBSHOUT.  I haven't tested it yet.


dartmouth] Dude 970 $ svn diff LIBSHOUT
Index: LIBSHOUT/2.2.2/Solaris/diffs/configure.sparcv9
===================================================================
--- LIBSHOUT/2.2.2/Solaris/diffs/configure.sparcv9      (revision 0)
+++ LIBSHOUT/2.2.2/Solaris/diffs/configure.sparcv9      (revision 0)
@@ -0,0 +1,34 @@
+Index: configure
+===================================================================
+--- configure  (revision 1771)
++++ configure  (working copy)
+@@ -18706,9 +18706,9 @@
+                 PROFILE="-p -g3 -O2 -signed"
+               ;;
+         sparc-sun-solaris*)
+-                DEBUG="-v -g"
+-                CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
+-                PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 
-Dsuncc"
++                DEBUG="-v -g -xs"
++                CFLAGS=""
++                PROFILE="-v -xpg -g -xs -Dsuncc"
+               ;;
+         *)
+                 DEBUG="-g"
+Index: configure.ac
+===================================================================
+--- configure.ac       (revision 1771)
++++ configure.ac       (working copy)
+@@ -54,9 +54,9 @@
+                 PROFILE="-p -g3 -O2 -signed"
+               ;;
+         sparc-sun-solaris*)
+-                DEBUG="-v -g"
+-                CFLAGS="-xO4 -fast -w -fsimple -native -xcg92"
+-                PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 
-Dsuncc"
++                DEBUG="-v -g -xs"
++                CFLAGS=""
++                PROFILE="-v -xpg -g -xs -Dsuncc"
+               ;;
+         *)
+                 DEBUG="-g"
Index: LIBSHOUT/2.2.2/Solaris/apply_patches
===================================================================
--- LIBSHOUT/2.2.2/Solaris/apply_patches        (revision 1771)
+++ LIBSHOUT/2.2.2/Solaris/apply_patches        (working copy)
@@ -12,3 +12,9 @@
      /usr/bin/gpatch -p1 < ./Solaris/diffs/$file
  done

+for file in \
+    configure.sparcv9
+do
+    echo "Applying patch $file."
+    /usr/bin/gpatch -p 0 < ./Solaris/diffs/$file
+done


-- Dave

Reply via email to