On Fri, Apr 24, 2020 at 12:14:31PM +0200, Charlene Wendling wrote:
> Hi,
>
> Ogle's altivec flavor is broken in the current macppc bulk:
>
> > error: unsupported argument '-m7400' to option 'Wa,'
>
> Since the point of this flavor is to use AltiVec, i've used flags that
> clang understands instead.
>
> This allows to build this flavor without issues [0].
>
> Comments/feedback are welcome,
>
> Charlène.
>
>
> [0] https://bin.charlenew.xyz/macppc/paths/x11/ogle,altivec.log
>
>
> Index: patches/patch-configure
> ===================================================================
> RCS file: /cvs/ports/x11/ogle/patches/patch-configure,v
> retrieving revision 1.8
> diff -u -p -u -p -r1.8 patch-configure
> --- patches/patch-configure 9 Dec 2009 10:19:33 -0000 1.8
> +++ patches/patch-configure 24 Apr 2020 09:59:45 -0000
> @@ -1,6 +1,7 @@
> $OpenBSD: patch-configure,v 1.8 2009/12/09 10:19:33 jakemsr Exp $
> ---- configure.orig Tue Nov 4 03:34:13 2003
> -+++ configure Sun Feb 8 23:20:43 2009
> +Index: configure
> +--- configure.orig
> ++++ configure
> @@ -11184,7 +11184,7 @@ fi
> echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_main" >&5
> echo "${ECHO_T}$ac_cv_lib_jpeg_main" >&6
> @@ -46,3 +47,12 @@ $OpenBSD: patch-configure,v 1.8 2009/12/
> ;;
> esac
> fi
> +@@ -13842,7 +13842,7 @@ _ACEOF
> + powerpc|ppc)
> + if test "x$GCC" = xyes; then
> + O_CFLAGS="$O_CFLAGS -fomit-frame-pointer -funroll-loops"
> +- XCFLAGS="-Wa,-m7400"
> ++ XCFLAGS="-maltivec -mabi=altivec"
> + USE_ALTIVEC=yes
> + fi
> + ;;
>
Sure