armcap.c: auto-setup processor capability vector.
authorAndy Polyakov <appro@openssl.org>
Thu, 20 Oct 2011 20:52:26 +0000 (20:52 +0000)
committerAndy Polyakov <appro@openssl.org>
Thu, 20 Oct 2011 20:52:26 +0000 (20:52 +0000)
crypto/armcap.c

index 74c2c5729595008a464c8ae6e4a3a92c393d6b8c..8dbd7410878a8c36f019475dc807a8165cd8d29f 100644 (file)
@@ -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;