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

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