2024-02-01 12:07:37 +00:00
|
|
|
From 84b7e1cf486761e99361f5dcf5879cd7baf51b58 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Jan Macku <jamacku@redhat.com>
|
|
|
|
Date: Thu, 1 Feb 2024 13:01:23 +0100
|
|
|
|
Subject: [PATCH 2/2] prevent multilib conflicts on the curl-config script
|
2013-04-12 10:13:50 +00:00
|
|
|
|
|
|
|
---
|
2020-06-24 07:27:34 +00:00
|
|
|
curl-config.in | 23 +++++------------------
|
|
|
|
docs/curl-config.1 | 4 +++-
|
|
|
|
libcurl.pc.in | 1 +
|
|
|
|
3 files changed, 9 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
|
2024-02-01 12:07:37 +00:00
|
|
|
index 54f92d9..15a60da 100644
|
2009-11-04 14:05:38 +00:00
|
|
|
--- a/curl-config.in
|
|
|
|
+++ b/curl-config.in
|
2022-06-27 10:57:53 +00:00
|
|
|
@@ -78,7 +78,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)
|
2022-06-27 10:57:53 +00:00
|
|
|
@@ -157,32 +157,19 @@ 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
|
2020-08-19 10:06:12 +00:00
|
|
|
- if test "X@ENABLE_SHARED@" = "Xno"; then
|
2013-04-12 10:13:50 +00:00
|
|
|
- echo ${CURLLIBDIR}-lcurl @LIBCURL_LIBS@
|
|
|
|
- else
|
|
|
|
- echo ${CURLLIBDIR}-lcurl
|
|
|
|
- fi
|
2015-06-05 11:23:20 +00:00
|
|
|
+ echo -lcurl
|
2013-04-12 10:13:50 +00:00
|
|
|
;;
|
2018-01-24 10:36:50 +00:00
|
|
|
--ssl-backends)
|
|
|
|
echo "@SSL_BACKENDS@"
|
|
|
|
;;
|
2006-03-21 09:17:46 +00:00
|
|
|
|
2011-09-13 18:48:12 +00:00
|
|
|
--static-libs)
|
2013-08-12 11:50:13 +00:00
|
|
|
- if test "X@ENABLE_STATIC@" != "Xno" ; then
|
2022-09-01 11:38:12 +00:00
|
|
|
- echo "@libdir@/libcurl.@libext@" @LDFLAGS@ @LIBCURL_LIBS@
|
2013-08-12 11:50:13 +00:00
|
|
|
- else
|
|
|
|
- echo "curl was built with static libraries disabled" >&2
|
|
|
|
- exit 1
|
|
|
|
- fi
|
2020-06-24 07:27:34 +00:00
|
|
|
+ echo "curl was built with static libraries disabled" >&2
|
|
|
|
+ exit 1
|
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
|
2024-02-01 12:07:37 +00:00
|
|
|
index c142cb9..0e189b4 100644
|
2011-09-13 18:48:12 +00:00
|
|
|
--- a/docs/curl-config.1
|
|
|
|
+++ b/docs/curl-config.1
|
2024-02-01 12:07:37 +00:00
|
|
|
@@ -48,7 +48,9 @@ no, one or several names. If more than one name, they will appear
|
|
|
|
comma\-separated. (Added in 7.58.0)
|
|
|
|
.IP --static-libs
|
2011-09-13 18:48:12 +00:00
|
|
|
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)
|
2024-02-01 12:07:37 +00:00
|
|
|
.IP --version
|
2011-09-13 18:48:12 +00:00
|
|
|
Outputs version information about the installed libcurl.
|
2024-02-01 12:07:37 +00:00
|
|
|
.IP --vernum
|
2011-09-13 18:48:12 +00:00
|
|
|
diff --git a/libcurl.pc.in b/libcurl.pc.in
|
2024-02-01 12:07:37 +00:00
|
|
|
index 9db6b0f..dcac692 100644
|
2010-04-21 19:09:46 +00:00
|
|
|
--- a/libcurl.pc.in
|
|
|
|
+++ b/libcurl.pc.in
|
2022-06-27 10:57:53 +00:00
|
|
|
@@ -31,6 +31,7 @@ libdir=@libdir@
|
2010-04-21 19:09:46 +00:00
|
|
|
includedir=@includedir@
|
|
|
|
supported_protocols="@SUPPORT_PROTOCOLS@"
|
|
|
|
supported_features="@SUPPORT_FEATURES@"
|
|
|
|
+configure_options=@CONFIGURE_OPTIONS@
|
|
|
|
|
|
|
|
Name: libcurl
|
2020-12-09 09:30:08 +00:00
|
|
|
URL: https://curl.se/
|
2016-02-08 11:27:19 +00:00
|
|
|
--
|
2024-02-01 12:07:37 +00:00
|
|
|
2.43.0
|
2016-02-08 11:27:19 +00:00
|
|
|
|