eal: always check CPU support at runtime
[dpdk.git] / lib / librte_eal / common / eal_common_cpuflags.c
index b3d03e5..8312614 100644 (file)
@@ -243,7 +243,10 @@ rte_cpu_get_flag_enabled(enum rte_cpu_flag_t feature)
  * with ICC, the check is generated by the compiler.
  */
 #ifndef __INTEL_COMPILER
-static void __attribute__ ((__constructor__))
+void __attribute__ ((__constructor__))
+#else
+void
+#endif
 rte_cpu_check_supported(void)
 {
        /* This is generated at compile-time by the build system */
@@ -261,4 +264,3 @@ rte_cpu_check_supported(void)
                        exit(1);
                }
 }
-#endif