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