diff options
| author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2025-07-30 17:54:55 +0000 |
|---|---|---|
| committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2025-07-30 21:18:26 +0000 |
| commit | aca79991f02d1d7fb1dc76bc7498beac2c8f3072 (patch) | |
| tree | b20917d2ff1842aef68cb22c53c79a00ecf3a105 | |
| parent | 38419d1c4ee50b19a3f2cb6caaeb4398990b8fd7 (diff) | |
deskutils/readur: fix build on powerpc64le
| -rw-r--r-- | deskutils/readur/files/patch-powerpc64le | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/deskutils/readur/files/patch-powerpc64le b/deskutils/readur/files/patch-powerpc64le new file mode 100644 index 000000000000..c70aea7304f9 --- /dev/null +++ b/deskutils/readur/files/patch-powerpc64le @@ -0,0 +1,20 @@ +Obtained from: https://cgit.FreeBSD.org/ports/commit/?id=f08b67611f0b19c0ee8d9053ee4d22e09b03f2b1 + +--- cargo-crates/aws-lc-sys-0.29.0/aws-lc/crypto/fipsmodule/cpucap/cpu_ppc64le.c.orig 2024-07-03 21:50:24 UTC ++++ cargo-crates/aws-lc-sys-0.29.0/aws-lc/crypto/fipsmodule/cpucap/cpu_ppc64le.c +@@ -69,10 +69,15 @@ void OPENSSL_cpuid_setup(void) { + + void OPENSSL_cpuid_setup(void) { + #if defined(AT_HWCAP2) ++#if defined(__linux__) + OPENSSL_ppc64le_hwcap2 = getauxval(AT_HWCAP2); ++#elif defined(__FreeBSD__) ++ elf_aux_info(AT_HWCAP2, &OPENSSL_ppc64le_hwcap2, sizeof(OPENSSL_ppc64le_hwcap2)); ++#endif + #else + OPENSSL_ppc64le_hwcap2 = 0; + #endif ++ + OPENSSL_cpucap_initialized = 1; + + // OPENSSL_ppccap is a 64-bit hex string which may start with "0x". |
