There's an optimization problem with __net_ConnectTCP(). You can
workaround this with -fno-strict-aliasing.
The significant parts of my patch are attached.
Index: vlc-0.8.6.h/configure.ac
===================================================================
--- vlc-0.8.6.h.orig/configure.ac	2008-12-12 15:34:21.000000000 +0100
+++ vlc-0.8.6.h/configure.ac	2008-12-12 15:34:21.000000000 +0100
@@ -1356,6 +1356,14 @@
     CFLAGS="${CFLAGS_save}"
 ])
 
+dnl Temporary arch workaround
+if test "${target_cpu}" = "powerpc"; then
+    CFLAGS_WORKAROUND="-fno-strict-aliasing"
+else
+    CFLAGS_WORKAROUND=""
+fi
+AC_SUBST(CFLAGS_WORKAROUND)
+
 dnl
 dnl  x86 accelerations
 dnl
Index: vlc-0.8.6.h/vlc-config.in.in
===================================================================
--- vlc-0.8.6.h.orig/vlc-config.in.in	2008-06-03 18:01:06.000000000 +0200
+++ vlc-0.8.6.h/vlc-config.in.in	2008-12-12 16:30:08.000000000 +0100
@@ -195,6 +195,7 @@
       ;;
     vlc)
       cppflags="${cppflags} -D__VLC__ -I${top_builddir}src/misc"
+      cppflags="${cppflags} @CFLAGS_WORKAROUND@"
       ;;
     plugin)
       echo_plugin=yes

Reply via email to