Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit 709e935

Browse files
committed
openssl: use dummy OPENSSL_cpuid_setup function
Use a empty implementation for function OPENSSL_cpuid_setup to resolve link error. We should figure out how to geenrate platform specific implementation of OPENSSL_cpuid_setup by leveraging crypto/*cpuid.pl. This patch is taken from Chromium.
1 parent 9fc84fd commit 709e935

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/openssl/openssl/crypto/cryptlib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ void OPENSSL_cpuid_setup(void)
718718
unsigned long *OPENSSL_ia32cap_loc(void) { return NULL; }
719719
#endif
720720
int OPENSSL_NONPIC_relocated = 0;
721-
#if !defined(OPENSSL_CPUID_SETUP) && !defined(OPENSSL_CPUID_OBJ)
721+
#if !defined(OPENSSL_CPUID_SETUP)
722722
void OPENSSL_cpuid_setup(void) {}
723723
#endif
724724

0 commit comments

Comments
 (0)