Blame SOURCES/0101-curl-7.29.0-multilib.patch

3a27f0
 curl-config.in     |   16 +++-------------
3a27f0
 docs/curl-config.1 |    4 +++-
3a27f0
 libcurl.pc.in      |    1 +
3a27f0
 3 files changed, 7 insertions(+), 14 deletions(-)
3a27f0
3a27f0
diff --git a/curl-config.in b/curl-config.in
3a27f0
index 150004d..95d0759 100644
3a27f0
--- a/curl-config.in
3a27f0
+++ b/curl-config.in
3a27f0
@@ -75,7 +75,7 @@ while test $# -gt 0; do
3a27f0
 	;;
3a27f0
 
3a27f0
     --cc)
3a27f0
-	echo "@CC@"
3a27f0
+	echo "gcc"
3a27f0
 	;;
3a27f0
 
3a27f0
     --prefix)
3a27f0
@@ -142,24 +142,14 @@ while test $# -gt 0; do
3a27f0
        	;;
3a27f0
 
3a27f0
     --libs)
3a27f0
-	if test "X@libdir@" != "X/usr/lib" -a "X@libdir@" != "X/usr/lib64"; then
3a27f0
-	   CURLLIBDIR="-L@libdir@ "
3a27f0
-	else
3a27f0
-	   CURLLIBDIR=""
3a27f0
-	fi
3a27f0
-	if test "X@REQUIRE_LIB_DEPS@" = "Xyes"; then
3a27f0
-	  echo ${CURLLIBDIR}-lcurl @LIBCURL_LIBS@
3a27f0
-	else
3a27f0
-	  echo ${CURLLIBDIR}-lcurl
3a27f0
-	fi
3a27f0
+	pkg-config libcurl --libs
3a27f0
 	;;
3a27f0
 
3a27f0
     --static-libs)
3a27f0
-	echo @libdir@/libcurl.@libext@ @LDFLAGS@ @LIBCURL_LIBS@
3a27f0
 	;;
3a27f0
 
3a27f0
     --configure)
3a27f0
-      echo @CONFIGURE_OPTIONS@
3a27f0
+      pkg-config libcurl --variable=configure_options | sed 's/^"//;s/"$//'
3a27f0
     ;;
3a27f0
 
3a27f0
     *)
3a27f0
diff --git a/docs/curl-config.1 b/docs/curl-config.1
3a27f0
index c4f4e2b..3e0ea60 100644
3a27f0
--- a/docs/curl-config.1
3a27f0
+++ b/docs/curl-config.1
3a27f0
@@ -65,7 +65,9 @@ be listed using uppercase and are separa
3a27f0
 one, or several protocols in the list. (Added in 7.13.0)
3a27f0
 .IP "--static-libs"
3a27f0
 Shows the complete set of libs and other linker options you will need in order
3a27f0
-to link your application with libcurl statically. (Added in 7.17.1)
3a27f0
+to link your application with libcurl statically. Note that Fedora/RHEL libcurl
3a27f0
+packages do not provide any static libraries, thus cannot be linked statically.
3a27f0
+(Added in 7.17.1)
3a27f0
 .IP "--version"
3a27f0
 Outputs version information about the installed libcurl.
3a27f0
 .IP "--vernum"
3a27f0
diff --git a/libcurl.pc.in b/libcurl.pc.in
3a27f0
index 2ba9c39..f8f8b00 100644
3a27f0
--- a/libcurl.pc.in
3a27f0
+++ b/libcurl.pc.in
3a27f0
@@ -29,6 +29,7 @@ libdir=@libdir@
3a27f0
 includedir=@includedir@
3a27f0
 supported_protocols="@SUPPORT_PROTOCOLS@"
3a27f0
 supported_features="@SUPPORT_FEATURES@"
3a27f0
+configure_options=@CONFIGURE_OPTIONS@
3a27f0
 
3a27f0
 Name: libcurl
3a27f0
 URL: http://curl.haxx.se/