summaryrefslogtreecommitdiffstats
path: root/hw/misc/virt_ctrl.c
diff options
context:
space:
mode:
authorPaolo Bonzini2021-11-05 10:09:26 +0100
committerPaolo Bonzini2021-11-08 12:20:08 +0100
commita2866660441f114188b7d1025a4a19cbb6188fef (patch)
tree2ca9e2d764eaca3314be5989d5ecd953f7c8130b /hw/misc/virt_ctrl.c
parentconfigure: preserve CFLAGS, CXXFLAGS and LDFLAGS in config.status (diff)
downloadqemu-a2866660441f114188b7d1025a4a19cbb6188fef.tar.gz
qemu-a2866660441f114188b7d1025a4a19cbb6188fef.tar.xz
qemu-a2866660441f114188b7d1025a4a19cbb6188fef.zip
configure: propagate --extra-cflags and --extra-ldflags to meson compile tests
Meson (intentionally) does not add QEMU_CFLAGS to cc.compiles/cc.links tests, as they are supposed to be independent of the specific sets of compilation flags used to build the programs. However, the user can still use CFLAGS or the toolchain file's LANG_args/LANG_link_args option to specify -I or -L options that apply to cc.compiles/cc.links as well. This is also the intended use of configure's --extra-cflags, --extra-cxxflags and --extra-ldflags options. For example, if one has netmap's header in a nonstandard directory, up to commit 837b84b1c078bf3e909 it used to work fine to do: .../configure --enable-netmap \ --extra-cflags=-I/path/to/netmap/sys but since the test was converted to meson, this does not work anymore. Pass these options to meson via the toolchain file instead of via config-host.mak, since both have the same purpose. Reported-by: Owen LaGarde Reported-by: Thomas Huth <thuth@redhat.com> Fixes: 47b30835e4 ("configure: consistently pass CFLAGS/CXXFLAGS/LDFLAGS to meson", 2020-10-06) Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/misc/virt_ctrl.c')
0 files changed, 0 insertions, 0 deletions