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

60fed6
From 2a4754a3a7cf60ecc36d83cbe50b8c337cb87632 Mon Sep 17 00:00:00 2001
60fed6
From: Kamil Dudka <kdudka@redhat.com>
60fed6
Date: Fri, 12 Apr 2013 12:04:05 +0200
60fed6
Subject: [PATCH] prevent multilib conflicts on the curl-config script
60fed6
60fed6
---
60fed6
 curl-config.in     |   21 +++------------------
60fed6
 docs/curl-config.1 |    4 +++-
60fed6
 libcurl.pc.in      |    1 +
60fed6
 3 files changed, 7 insertions(+), 19 deletions(-)
60fed6
60fed6
diff --git a/curl-config.in b/curl-config.in
60fed6
index 150004d..95d0759 100644
60fed6
--- a/curl-config.in
60fed6
+++ b/curl-config.in
60fed6
@@ -76,7 +76,7 @@ while test $# -gt 0; do
60fed6
         ;;
60fed6
 
60fed6
     --cc)
60fed6
-        echo "@CC@"
60fed6
+        echo "gcc"
60fed6
         ;;
60fed6
 
60fed6
     --prefix)
60fed6
@@ -143,32 +143,17 @@ while test $# -gt 0; do
60fed6
         ;;
60fed6
 
60fed6
     --libs)
60fed6
-        if test "X@libdir@" != "X/usr/lib" -a "X@libdir@" != "X/usr/lib64"; then
60fed6
-           CURLLIBDIR="-L@libdir@ "
60fed6
-        else
60fed6
-           CURLLIBDIR=""
60fed6
-        fi
60fed6
-        if test "X@REQUIRE_LIB_DEPS@" = "Xyes"; then
60fed6
-          echo ${CURLLIBDIR}-lcurl @LIBCURL_LIBS@
60fed6
-        else
60fed6
-          echo ${CURLLIBDIR}-lcurl
60fed6
-        fi
60fed6
+        echo -lcurl
60fed6
         ;;
60fed6
     --ssl-backends)
60fed6
         echo "@SSL_BACKENDS@"
60fed6
         ;;
60fed6
 
60fed6
     --static-libs)
60fed6
-        if test "X@ENABLE_STATIC@" != "Xno" ; then
60fed6
-          echo @libdir@/libcurl.@libext@ @LDFLAGS@ @LIBCURL_LIBS@
60fed6
-        else
60fed6
-          echo "curl was built with static libraries disabled" >&2
60fed6
-          exit 1
60fed6
-        fi
60fed6
         ;;
60fed6
 
60fed6
     --configure)
60fed6
-        echo @CONFIGURE_OPTIONS@
60fed6
+        pkg-config libcurl --variable=configure_options | sed 's/^"//;s/"$//'
60fed6
         ;;
60fed6
 
60fed6
     *)
60fed6
diff --git a/docs/curl-config.1 b/docs/curl-config.1
60fed6
index 14a9d2b..ffcc004 100644
60fed6
--- a/docs/curl-config.1
60fed6
+++ b/docs/curl-config.1
60fed6
@@ -70,7 +70,9 @@ no, one or several names. If more than one name, they will appear
60fed6
 comma-separated. (Added in 7.58.0)
60fed6
 .IP "--static-libs"
60fed6
 Shows the complete set of libs and other linker options you will need in order
60fed6
-to link your application with libcurl statically. (Added in 7.17.1)
60fed6
+to link your application with libcurl statically. Note that Fedora/RHEL libcurl
60fed6
+packages do not provide any static libraries, thus cannot be linked statically.
60fed6
+(Added in 7.17.1)
60fed6
 .IP "--version"
60fed6
 Outputs version information about the installed libcurl.
60fed6
 .IP "--vernum"
60fed6
diff --git a/libcurl.pc.in b/libcurl.pc.in
60fed6
index 2ba9c39..f8f8b00 100644
60fed6
--- a/libcurl.pc.in
60fed6
+++ b/libcurl.pc.in
60fed6
@@ -29,6 +29,7 @@ libdir=@libdir@
60fed6
 includedir=@includedir@
60fed6
 supported_protocols="@SUPPORT_PROTOCOLS@"
60fed6
 supported_features="@SUPPORT_FEATURES@"
60fed6
+configure_options=@CONFIGURE_OPTIONS@
60fed6
 
60fed6
 Name: libcurl
60fed6
 URL: https://curl.haxx.se/
60fed6
-- 
60fed6
2.5.0
60fed6