From a379a4c1637cfe266bfa95c2c878f9cc06ce2f6a Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 25 May 2012 23:59:38 +0200 Subject: Fix libcurl.pc and curl-config generation for static MingW* cross builds --- curl-config.in | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'curl-config.in') diff --git a/curl-config.in b/curl-config.in index 3d02a0337..a3ca8b55f 100644 --- a/curl-config.in +++ b/curl-config.in @@ -6,7 +6,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2001 - 2011, Daniel Stenberg, , et al. +# Copyright (C) 2001 - 2012, Daniel Stenberg, , et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms @@ -24,6 +24,7 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ includedir=@includedir@ +cppflag_curl_staticlib=@CPPFLAG_CURL_STATICLIB@ usage() { @@ -128,10 +129,15 @@ while test $# -gt 0; do ;; --cflags) + if test "X$cppflag_curl_staticlib" = "X-DCURL_STATICLIB"; then + CPPFLAG_CURL_STATICLIB="-DCURL_STATICLIB " + else + CPPFLAG_CURL_STATICLIB="" + fi if test "X@includedir@" = "X/usr/include"; then - echo "" + echo "$(CPPFLAG_CURL_STATICLIB)" else - echo "-I@includedir@" + echo "$(CPPFLAG_CURL_STATICLIB)-I@includedir@" fi ;; -- cgit v1.2.1