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 74c2c57..8dbd741 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;