diff --git a/numpy/core/src/common/npy_cpu_features.c.src b/numpy/core/src/common/npy_cpu_features.c.src index a2383c45f61d..0bdc046b7fad 100644 --- a/numpy/core/src/common/npy_cpu_features.c.src +++ b/numpy/core/src/common/npy_cpu_features.c.src @@ -530,7 +530,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