diff --git a/numpy/core/src/common/npy_cpu_features.c.src b/numpy/core/src/common/npy_cpu_features.c.src index ff4f9f60ab7b..602eda57ad74 100644 --- a/numpy/core/src/common/npy_cpu_features.c.src +++ b/numpy/core/src/common/npy_cpu_features.c.src @@ -579,7 +579,9 @@ npy__cpu_init_features_arm8(void) #include #include "npy_cpuinfo_parser.h" +#if defined(__linux__) __attribute__((weak)) unsigned long getauxval(unsigned long); // linker should handle it +#endif #ifdef __FreeBSD__ __attribute__((weak)) int elf_aux_info(int, void *, int); // linker should handle it