Sfoglia il codice sorgente

Fix static builds on darwin

Nils Maier 12 anni fa
parent
commit
3096601ffe
1 ha cambiato i file con 8 aggiunte e 3 eliminazioni
  1. 8 3
      configure.ac

+ 8 - 3
configure.ac

@@ -963,9 +963,14 @@ if test "x$ARIA2_STATIC" = "xyes"; then
   # libtool.
   LDFLAGS="$LDFLAGS -all-static"
   dnl For non-MinGW build, we need additional libs for static build.
-  if test "x$win_build" != "xyes"; then
-    LIBS="$LIBS -lpthread -ldl -lrt"
-  fi
+  case "$host" in
+    *mingw*|*msvc*|*darwin*)
+    ;;
+
+    *)
+      LIBS="$LIBS -lpthread -ldl -lrt"
+    ;;
+  esac
 fi
 
 if test "x$win_build" = "xyes" && test "x$enable_libaria2" = "xyes"; then