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

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