[PATCH v5 5/7] slirp: update build flags for iOS resolv fix

Joelle van Dyne posted 7 patches 5 years, 1 month ago
Maintainers: Richard Henderson <rth@twiddle.net>, Laurent Vivier <lvivier@redhat.com>, Markus Armbruster <armbru@redhat.com>, Thomas Huth <thuth@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>, Michael Roth <mdroth@linux.vnet.ibm.com>, Max Reitz <mreitz@redhat.com>, Eric Blake <eblake@redhat.com>, Jason Wang <jasowang@redhat.com>, Kevin Wolf <kwolf@redhat.com>, Samuel Thibault <samuel.thibault@ens-lyon.org>, Joelle van Dyne <j@getutm.app>
There is a newer version of this series
[PATCH v5 5/7] slirp: update build flags for iOS resolv fix
Posted by Joelle van Dyne 5 years, 1 month ago
A future libslirp update will use libresolv on Darwin systems, so we add the
flags in QEMU build now.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Joelle van Dyne <j@getutm.app>
---
 meson.build | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meson.build b/meson.build
index b087721f63..40dd3b30fc 100644
--- a/meson.build
+++ b/meson.build
@@ -1156,6 +1156,8 @@ if have_system
     slirp_deps = []
     if targetos == 'windows'
       slirp_deps = cc.find_library('iphlpapi')
+    elif targetos == 'darwin'
+      slirp_deps = cc.find_library('resolv')
     endif
     slirp_conf = configuration_data()
     slirp_conf.set('SLIRP_MAJOR_VERSION', meson.project_version().split('.')[0])
-- 
2.28.0