aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorBrad Smith <brad@comstyle.com>2024-07-27 23:58:55 -0400
committerRichard Henderson <richard.henderson@linaro.org>2024-07-30 07:59:23 +1000
commit27fca0a0d560ae704457c5f89e0be658afef034d (patch)
tree735b9409587ef9aad8b1ad744972887802bd779d /meson.build
parent25268a18550323f6babbcc260838fa09941e5c85 (diff)
downloadqemu-27fca0a0d560ae704457c5f89e0be658afef034d.zip
qemu-27fca0a0d560ae704457c5f89e0be658afef034d.tar.gz
qemu-27fca0a0d560ae704457c5f89e0be658afef034d.tar.bz2
util/cpuinfo: Make use of elf_aux_info(3) on OpenBSD
Signed-off-by: Brad Smith <brad@comstyle.com> Message-ID: <ZqXB_zz0fR1CpA7k@humpty.home.comstyle.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build8
1 files changed, 8 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 5613b62..97f63aa 100644
--- a/meson.build
+++ b/meson.build
@@ -2835,6 +2835,14 @@ config_host_data.set('CONFIG_GETAUXVAL', cc.links(gnu_source_prefix + '''
return getauxval(AT_HWCAP) == 0;
}'''))
+config_host_data.set('CONFIG_ELF_AUX_INFO', cc.links(gnu_source_prefix + '''
+ #include <sys/auxv.h>
+ int main(void) {
+ unsigned long hwcap = 0;
+ elf_aux_info(AT_HWCAP, &hwcap, sizeof(hwcap));
+ return hwcap;
+ }'''))
+
config_host_data.set('CONFIG_USBFS', have_linux_user and cc.compiles('''
#include <linux/usbdevice_fs.h>