From 9de4e5ebe44eee500c979ca6119f10deb1668ce1 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 14 Feb 2007 03:00:08 +0000 Subject: Fixed the problem of curl-config --libs specifying unneeded libraries dependencies to applications. --- curl-config.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'curl-config.in') diff --git a/curl-config.in b/curl-config.in index aaffda820..9f4513969 100644 --- a/curl-config.in +++ b/curl-config.in @@ -181,8 +181,12 @@ while test $# -gt 0; do ;; --libs) - echo -L@libdir@ -lcurl @LDFLAGS@ @LIBS@ - ;; + if test "X@REQUIRE_LIB_DEPS@" = "Xyes"; then + echo -L@libdir@ -lcurl @LDFLAGS@ @LIBS@ + else + echo -L@libdir@ -lcurl @LDFLAGS@ + fi + ;; *) echo "unknown option: $1" -- cgit v1.2.1