Skip to content

Commit 858edfa

Browse files
committed
Prevent libcurl's -Wl,--version-script libcurl.vers.in to override what symbols are hidden or not, by patching it with commented out version
1 parent 977fcad commit 858edfa

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

MODULE.bazel

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ single_version_override(
1818

1919
bazel_dep(name = "rapidyaml", version = "0.9.0")
2020
bazel_dep(name = "curl", version = "8.11.0.bcr.1")
21+
single_version_override(
22+
module_name = "curl",
23+
patch_strip = 1,
24+
patches = [
25+
"bazel/curl.patch",
26+
],
27+
)
28+
2129
bazel_dep(name = "depend_on_what_you_use", version = "0.10.0")
2230
bazel_dep(name = "google_benchmark", version = "1.9.4")
2331
bazel_dep(name = "googletest", version = "1.17.0.bcr.1")

bazel/curl.patch

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/lib/libcurl.vers.in b/lib/libcurl.vers.in
2+
index 821966999..00c432c5d 100644
3+
--- a/lib/libcurl.vers.in
4+
+++ b/lib/libcurl.vers.in
5+
@@ -1,5 +1,7 @@
6+
+/*
7+
CURL_@CURL_LIBCURL_VERSIONED_SYMBOLS_PREFIX@@CURL_LIBCURL_VERSIONED_SYMBOLS_SONAME@
8+
{
9+
global: curl_*;
10+
local: *;
11+
};
12+
+*/

0 commit comments

Comments
 (0)