Fix static builds on darwin

pull/161/head
Nils Maier 2013-12-05 16:30:25 +01:00
parent 2c566ccb68
commit 3096601ffe
1 changed files with 8 additions and 3 deletions

View File

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