Compare commits

..
3 Commits
Author SHA1 Message Date
osy 210cdec6b9 build: use -dynamiclib instead of -bundle for OSX
For building QEMU as a shared lib, it must be loaded as a dylib. This breaks
compatibility with OSX < 10.4.
2020-07-02 10:43:32 -07:00
osy fc3cd30543 build: updated submodules for iOS builds 2020-04-13 17:58:32 -07:00
osy 7235a04d36 build: add libresolv dependency for Darwin
We cannot access /etc/resolv.conf on iOS so libslirp is modified to use
libresolv instead. Since we link to it statically we need to add the
LDFLAGS to qemu.
2020-04-13 17:58:32 -07:00
3 changed files with 5 additions and 5 deletions

No files matched your search

+2 -2
View File
@@ -54,7 +54,7 @@
url = https://git.qemu.org/git/edk2.git
[submodule "slirp"]
path = slirp
url = https://git.qemu.org/git/libslirp.git
url = https://github.com/utmapp/libslirp.git
[submodule "roms/opensbi"]
path = roms/opensbi
url = https://git.qemu.org/git/opensbi.git
@@ -63,4 +63,4 @@
url = https://github.com/bonzini/qboot
[submodule "libucontext"]
path = libucontext
url = https://github.com/halts/libucontext.git
url = https://github.com/utmapp/libucontext.git
Vendored
+2 -2
View File
@@ -861,7 +861,7 @@ Darwin)
hax="yes"
hvf="yes"
DSOSUF=".dylib"
LDFLAGS_SHARED="-bundle -undefined dynamic_lookup"
LDFLAGS_SHARED="-dynamiclib -undefined dynamic_lookup"
if [ "$cpu" = "x86_64" ] ; then
QEMU_CFLAGS="-arch x86_64 $QEMU_CFLAGS"
LDFLAGS="-arch x86_64 $LDFLAGS"
@@ -892,7 +892,7 @@ iOS)
host_device_support="no"
audio_drv_list=""
audio_possible_drivers=""
LDFLAGS="-framework CoreFoundation $LDFLAGS"
LDFLAGS="-framework CoreFoundation -lresolv $LDFLAGS"
# Disable attempts to use ObjectiveC features in os/object.h since they
# won't work when we're compiling with gcc as a C compiler.
QEMU_CFLAGS="-DOS_OBJECT_USE_OBJC=0 $QEMU_CFLAGS"
+1 -1
Submodule slirp updated: 126c04acba...5ac17660a7.