From: Andy Polyakov Date: Thu, 20 Oct 2011 20:52:26 +0000 (+0000) Subject: armcap.c: auto-setup processor capability vector. X-Git-Tag: OpenSSL-fips-2_0-rc1~18 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=033a25cef59de7ab4b9fdbfab96f683e2b79d4e9;p=oweals%2Fopenssl.git armcap.c: auto-setup processor capability vector. --- diff --git a/crypto/armcap.c b/crypto/armcap.c index 74c2c57295..8dbd741087 100644 --- a/crypto/armcap.c +++ b/crypto/armcap.c @@ -29,6 +29,9 @@ unsigned int OPENSSL_rdtsc(void) return 0; } +#if defined(__GNUC__) && __GNUC__>=2 +void OPENSSL_cpuid_setup(void) __attribute__((constructor)) +#endif void OPENSSL_cpuid_setup(void) { char *e;