summaryrefslogtreecommitdiff
path: root/curl-config.in
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-02-14 03:00:08 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-02-14 03:00:08 +0000
commit9de4e5ebe44eee500c979ca6119f10deb1668ce1 (patch)
treecccd610740041061ed189faee0a302207d3a72b8 /curl-config.in
parent7033a1c072af505ceb94b73112ec87914935e3fa (diff)
downloadcurl-9de4e5ebe44eee500c979ca6119f10deb1668ce1.tar.gz
Fixed the problem of curl-config --libs specifying unneeded libraries
dependencies to applications.
Diffstat (limited to 'curl-config.in')
-rw-r--r--curl-config.in8
1 files changed, 6 insertions, 2 deletions
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"