diff options
Diffstat (limited to 'curl-config.in')
-rw-r--r-- | curl-config.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/curl-config.in b/curl-config.in index c95518d56..e0fa03c2d 100644 --- a/curl-config.in +++ b/curl-config.in @@ -155,7 +155,12 @@ while test $# -gt 0; do ;; --static-libs) - echo @libdir@/libcurl.@libext@ @LDFLAGS@ @LIBCURL_LIBS@ + if test "X@ENABLE_STATIC@" != "Xno" ; then + echo @libdir@/libcurl.@libext@ @LDFLAGS@ @LIBCURL_LIBS@ + else + echo "curl was built with static libraries disabled" >&2 + exit 1 + fi ;; --configure) |