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

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