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

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