projg2 / cpuid2cpuflags

Tool to generate CPU_FLAGS_* for your CPU
GNU General Public License v2.0
108 stars 20 forks source link

Compile on arm with musl libc #3

Closed doughdemon closed 7 years ago

doughdemon commented 7 years ago

Seems to work fine, except that the GLIBC test in src/arm.c is counter-productive...

mgorny commented 7 years ago

getauxval() is glibc-only per the manpage. If musl supports it (does it provide both AT_HWCAP and AT_HWCAP2?), then please supply me the definition that I could use to detect that.

doughdemon commented 7 years ago

getauxval() is glibc-only per the manpage. If musl supports it (does it provide both AT_HWCAP and AT_HWCAP2?),

yes.

then please supply me the definition that I could use to detect that.

You could check for <sys/auxv.h> in configure.

mgorny commented 7 years ago

Well, I guess that makes sense. FWICS, Android seems to have that header and function as well.

mgorny commented 7 years ago

Could you test the current git (-9999)?

doughdemon commented 7 years ago

Current git works. Thanks!

mgorny commented 7 years ago

Resolving then. I'll include it in the next release. Feel free to ping me in a few days if nothing else comes up for the release.