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

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