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

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