From 3096601ffe978cfa7d680ee1e878467cf1bd0ac0 Mon Sep 17 00:00:00 2001 From: Nils Maier Date: Thu, 5 Dec 2013 16:30:25 +0100 Subject: [PATCH] Fix static builds on darwin --- configure.ac | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index c35bcc08..a538865a 100644 --- a/configure.ac +++ b/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