curl-config: only provide libraries with --libs
authorDave Reisner <d@falconindy.com>
Mon, 27 Feb 2012 18:51:41 +0000 (19:51 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 8 Mar 2012 19:55:03 +0000 (20:55 +0100)
In line with the manpage, curl-config --libs should only provide the necessary
library flags for the linker in order to compile software with libcurl. Also
with this change, we match what the pkg-config file provides.

curl-config.in

index 150004d..3d02a03 100644 (file)
@@ -142,9 +142,9 @@ while test $# -gt 0; do
           CURLLIBDIR=""
        fi
        if test "X@REQUIRE_LIB_DEPS@" = "Xyes"; then
-         echo ${CURLLIBDIR}-lcurl @LDFLAGS@ @LIBCURL_LIBS@ @LIBS@
+         echo ${CURLLIBDIR}-lcurl @LIBCURL_LIBS@ @LIBS@
        else
-         echo ${CURLLIBDIR}-lcurl @LDFLAGS@ @LIBS@
+         echo ${CURLLIBDIR}-lcurl @LIBS@
        fi
        ;;