Date: Sun, 12 Oct 2025 21:18:15 GMT From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 20be7288a21a - main - multimedia/aom: unbreak build on riscv64 Message-ID: <202510122118.59CLIF0m083625@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=20be7288a21a009d8bc07187a7fb87cafd04283a commit 20be7288a21a009d8bc07187a7fb87cafd04283a Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2025-10-12 13:38:25 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2025-10-12 21:16:56 +0000 multimedia/aom: unbreak build on riscv64 ld: error: undefined symbol: getauxval >>> referenced by riscv_cpudetect.c >>> CMakeFiles/aom_ports.dir/aom_ports/riscv_cpudetect.c.o:(riscv_simd_caps) PR: 290172 Reported by: Rich Dunkle --- .../aom/files/patch-aom__ports_riscv__cpudetect.c | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/multimedia/aom/files/patch-aom__ports_riscv__cpudetect.c b/multimedia/aom/files/patch-aom__ports_riscv__cpudetect.c new file mode 100644 index 000000000000..620b4948ebf7 --- /dev/null +++ b/multimedia/aom/files/patch-aom__ports_riscv__cpudetect.c @@ -0,0 +1,25 @@ +- Implement runtime detection on FreeBSD + +--- aom_ports/riscv_cpudetect.c.orig 2025-09-05 22:10:37 UTC ++++ aom_ports/riscv_cpudetect.c +@@ -23,6 +23,20 @@ + + #define HWCAP_RVV (1 << ('v' - 'a')) + ++#if defined(__FreeBSD__) ++static unsigned long getauxval(unsigned long type) ++{ ++ /* Only AT_HWCAP* return unsigned long */ ++ if (type != AT_HWCAP && type != AT_HWCAP2) { ++ return 0; ++ } ++ ++ unsigned long ret = 0; ++ elf_aux_info(type, &ret, sizeof(ret)); ++ return ret; ++} ++#endif ++ + int riscv_simd_caps(void) { + int flags = 0; + #if HAVE_RVVhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202510122118.59CLIF0m083625>
