Browse Source

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.
osy 5 years ago
parent
commit
210cdec6b9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      configure

+ 1 - 1
configure

@@ -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"