aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorosy <osy86@users.noreply.github.com>2020-03-31 15:59:19 -0700
committerosy <osy86@users.noreply.github.com>2020-10-12 16:39:25 -0700
commit9f82a47b81f2864422b82c1e40e51a2ed9c6ac32 (patch)
tree17e6f54a649963fea930e3191dda4b103d9203c5 /meson.build
parent2fc963326df7d39a83ea768416329a27b9fd6e1c (diff)
downloadslirp-9f82a47b81f2864422b82c1e40e51a2ed9c6ac32.zip
slirp-9f82a47b81f2864422b82c1e40e51a2ed9c6ac32.tar.gz
slirp-9f82a47b81f2864422b82c1e40e51a2ed9c6ac32.tar.bz2
Add DNS resolving for iOS
iOS does not support reading /etc/resolv.conf so we have to use libresolv Also modified build script to support building on Darwin systems.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build10
1 files changed, 9 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 922d602..2d67ae1 100644
--- a/meson.build
+++ b/meson.build
@@ -54,6 +54,10 @@ if host_system == 'windows'
cc.find_library('ws2_32'),
cc.find_library('iphlpapi')
]
+elif host_system == 'darwin'
+ platform_deps += [
+ cc.find_library('resolv')
+ ]
endif
cargs = [
@@ -95,7 +99,11 @@ sources = [
]
mapfile = 'src/libslirp.map'
-vflag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfile)
+vflag = []
+vflag_test = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfile)
+if cc.has_link_argument(vflag_test)
+ vflag += vflag_test
+endif
configure_file(
input : 'src/libslirp-version.h.in',