[x264-devel] patch for configure on ppc osx + gcc16
Andrew Randrianasulu
randrianasulu at gmail.com
Sat Jun 27 07:08:19 UTC 2026
Hello!
We were testing ppcports overlay on my newly acquired ppc powermac, and
x264 was failing out of the box
I think I fixed that (new gcc does not support -fastf) and discovered there
was vsx enable/disable switch for configure.
Now it displays vsx status in configure summary, and sets vsx to no if
MACOSX (as far as I understand there never was OSX for those powerpc64le
machines where VSX exist). Without disabling vsx build was failing in this
case.
for working altivec we seems to need two more patches, one uncommited from
x264 merge request, another from some linux distro.
https://github.com/macos-powerpc/powerpc-ports/tree/main/multimedia/x264
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20260627/cfc5c08b/attachment.htm>
-------------- next part --------------
diff --git a/configure b/configure
index d1d0a471..aecb350b 100755
--- a/configure
+++ b/configure
@@ -38,6 +38,7 @@ Configuration options:
Advanced options:
--disable-asm disable platform-specific assembly optimizations
+ --disable-vsx disable VSX asm
--enable-lto enable link-time optimization
--enable-debug add -g
--enable-gprof add -pg
@@ -675,6 +676,8 @@ case $host_os in
darwin*)
SYS="MACOSX"
libm="-lm"
+ vsx="no"
+ cc_check "" -fastf && CFLAGS="$CFLAGS -fastf"
if [ "$pic" = "no" ]; then
cc_check "" -mdynamic-no-pic && CFLAGS="$CFLAGS -mdynamic-no-pic"
fi
@@ -822,7 +825,7 @@ case $host_cpu in
AS="${AS-${CC}}"
AS_EXT=".c"
if [ $SYS = MACOSX ] ; then
- CFLAGS="$CFLAGS -faltivec -fastf -mcpu=G4"
+ CFLAGS="$CFLAGS -faltivec -mcpu=G4"
else
CFLAGS="$CFLAGS -maltivec -mabi=altivec"
define HAVE_ALTIVEC_H
@@ -1743,6 +1746,7 @@ shared: $shared
static: $static
bashcompletion: $bashcompletion
asm: $asm
+vsx $vsx
interlaced: $interlaced
avs: $avs
lavf: $lavf
More information about the x264-devel
mailing list