[mythtv] Linux Sparc build fix

Guido Guenther agx at sigxcpu.org
Sun Feb 19 18:12:25 UTC 2006


Hi,
attached is a small build fix for sparc linux. Please apply if
appropriate.
Cheers,
 -- Guido
-------------- next part --------------
--- mythtv-0.18.1/libs/libavcodec/libavcodec.pro..agx	2006-02-13 13:25:04.000000000 +0100
+++ mythtv-0.18.1/libs/libavcodec/libavcodec.pro	2006-02-13 13:31:32.000000000 +0100
@@ -141,3 +143,8 @@
     QMAKE_LFLAGS_SHLIB += -single_module
     QMAKE_LFLAGS_SHLIB += -seg1addr 0xC3000000
 }
+
+contains( TARGET_ARCH_SPARC, yes ) {
+    SOURCES+=sparc/dsputil_vis.c
+}
+
--- mythtv-0.19/configure.orig	2006-02-09 16:14:44.000000000 +0100
+++ mythtv-0.19/configure	2006-02-16 22:15:15.000000000 +0100
@@ -1298,6 +1297,8 @@
 fi
 if test x"$tune" = x"generic" -a x"$cpu" = x"x86_64" -a x"$cpu_overide" != x"yes"; then
    ARCHFLAGS="-march=k8"
+elif test x"$tune" = x"generic" -a x"$cpu" = x"sparc64" -a x"$cpu_overide" != x"yes"; then
+   ARCHFLAGS="-mcpu=ultrasparc -mvis"
 fi
 
 if test x"$proc_error_msg" = x"yes"; then
@@ -1416,7 +1416,7 @@
 else
 
 # if cross compiling, cannot launch a program, so make a static guess
-if test "$cpu" = "powerpc" -o "$cpu" = "mips" ; then
+if test "$cpu" = "powerpc" -o "$cpu" = "mips" -o "$cpu" = "sparc" -o "$cpu"="sparc64"; then
     bigendian="yes"
 fi
 


More information about the mythtv-dev mailing list