From ea975c3db1125fa86fce3c1f6c5b9341e5f28f92 Mon Sep 17 00:00:00 2001
From: SwK <krice@tollfreegateway.com>
Date: Tue, 28 Feb 2012 19:21:04 -0500
Subject: [PATCH] FS-3630 --resolve Fix up the autoconf macro to properly use
 the linker flags for a statically linked library.

---
 build/config/libcurl.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build/config/libcurl.m4 b/build/config/libcurl.m4
index 5ddf77f321..d1e6f65aa5 100644
--- a/build/config/libcurl.m4
+++ b/build/config/libcurl.m4
@@ -97,7 +97,7 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG],
               LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
            fi
            if test x"$LIBCURL" = "x" ; then
-              LIBCURL=`$_libcurl_config --libs`
+              LIBCURL=`$_libcurl_config --libs --static`
 
               # This is so silly, but Apple actually has a bug in their
 	      # curl-config script.  Fixed in Tiger, but there are still