void-packages/srcpkgs/chromium/patches/xxx-ppc64le-libvpx.patch

34 lines
1.4 KiB
Diff

commit 981437bc846fcdb854062e89fd3d86f112e5f426
Author: q66 <daniel@octaforge.org>
Date: Sat Jun 25 12:35:37 2022 +0200
Use generic target for now.
This is because the source tree is missing vsx optimizations that
then do not get included and result in failed linking such as:
ld.lld: error: undefined symbol: vpx_mse16x16_vsx
diff --git a/third_party/libvpx/generate_gni.sh b/third_party/libvpx/generate_gni.sh
index 7429080..43ee29a 100755
--- a/third_party/libvpx/generate_gni.sh
+++ b/third_party/libvpx/generate_gni.sh
@@ -405,7 +405,7 @@
gen_config_files linux/mips64el "--target=mips64-linux-gcc ${all_platforms}"
gen_config_files linux/loongarch \
"--target=loongarch64-linux-gcc ${all_platforms}"
-gen_config_files linux/ppc64 "--target=ppc64le-linux-gcc ${all_platforms}"
+gen_config_files linux/ppc64 "--target=generic-gnu ${all_platforms}"
gen_config_files linux/generic "--target=generic-gnu $HIGHBD ${all_platforms}"
gen_config_files win/arm64 \
"--target=arm64-win64-vs15 ${all_platforms} ${HIGHBD}"
@@ -468,7 +468,7 @@
gen_rtcd_header linux/mipsel mipsel
gen_rtcd_header linux/mips64el mips64el
gen_rtcd_header linux/loongarch loongarch
-gen_rtcd_header linux/ppc64 ppc
+gen_rtcd_header linux/ppc64 generic
gen_rtcd_header linux/generic generic
gen_rtcd_header win/arm64 armv8
gen_rtcd_header win/ia32 x86 "${require_sse2}"