mirror of
https://git.freebsd.org/ports.git
synced 2025-06-12 08:10:31 -04:00
Changes: https://github.com/awslabs/aws-crt-ruby/releases https://github.com/awslabs/aws-crt-ruby/commits/main
16 lines
590 B
Text
16 lines
590 B
Text
Reference: https://cgit.freebsd.org/ports/commit/?id=f08b67611f0b19c0ee8d9053ee4d22e09b03f2b1
|
|
|
|
--- aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/cpucap/cpu_ppc64le.c.orig 2023-10-20 20:00:18 UTC
|
|
+++ aws-crt-ffi/crt/aws-lc/crypto/fipsmodule/cpucap/cpu_ppc64le.c
|
|
@@ -27,7 +27,11 @@
|
|
extern uint8_t OPENSSL_cpucap_initialized;
|
|
|
|
void OPENSSL_cpuid_setup(void) {
|
|
+#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
|
|
OPENSSL_cpucap_initialized = 1;
|
|
}
|
|
|