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.
This commit is contained in:
osy
2020-07-01 22:39:02 -07:00
parent fc3cd30543
commit 210cdec6b9
Vendored
+1 -1
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"