Skip to content

Commit

Permalink
devel/py-awscrt: Rename patch file
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed Jul 30, 2022
1 parent 1ac0894 commit efd7a9b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.

This file was deleted.

Expand Up @@ -9,3 +9,17 @@
set(ARCH "ppc64le")
else()
message(FATAL_ERROR "Unknown processor:" ${CMAKE_SYSTEM_PROCESSOR})
--- crt/aws-lc/crypto/fipsmodule/cpucap/cpu_ppc64le.c.orig 2020-10-26 11:38:52 UTC
+++ crt/aws-lc/crypto/fipsmodule/cpucap/cpu_ppc64le.c
@@ -28,7 +28,11 @@
#endif

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
}

int CRYPTO_is_PPC64LE_vcrypto_capable(void) {

0 comments on commit efd7a9b

Please sign in to comment.