summaryrefslogtreecommitdiff
path: root/dev-libs/libpcre2/files/libpcre2-10.47-remove-local-symbols.patch
blob: 99fdcfc56df7322becbf5a60393e424e14200c71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Gentoo Bug: https://bugs.gentoo.org/973026
# Upstream PR: https://github.com/PCRE2Project/pcre2/pull/884
# Patch: https://github.com/termux/termux-packages/blob/master/packages/pcre2/0001-version-script-remove-local-symbols.patch
#
# Fixes:
# ld.lld: error: version script assignment of 'local' to symbol '_fini' failed: symbol not defined
# ld.lld: error: version script assignment of 'local' to symbol '_init' failed: symbol not defined

--- a/src/libpcre2-16.sym
+++ b/src/libpcre2-16.sym
@@ -80,9 +80,6 @@
     pcre2_substring_list_get_16;
     pcre2_substring_nametable_scan_16;
     pcre2_substring_number_from_name_16;
-  local:
-    _fini;
-    _init;
 };
 
 # PCRE2_10.48 {} PCRE2_10.47;
--- a/src/libpcre2-32.sym
+++ b/src/libpcre2-32.sym
@@ -80,9 +80,6 @@
     pcre2_substring_list_get_32;
     pcre2_substring_nametable_scan_32;
     pcre2_substring_number_from_name_32;
-  local:
-    _fini;
-    _init;
 };
 
 # PCRE2_10.48 {} PCRE2_10.47;
--- a/src/libpcre2-8.sym
+++ b/src/libpcre2-8.sym
@@ -80,9 +80,6 @@
     pcre2_substring_list_get_8;
     pcre2_substring_nametable_scan_8;
     pcre2_substring_number_from_name_8;
-  local:
-    _fini;
-    _init;
 };
 
 # PCRE2_10.48 {} PCRE2_10.47;
--- a/src/libpcre2-posix.sym
+++ b/src/libpcre2-posix.sym
@@ -5,9 +5,6 @@
     pcre2_regerror;
     pcre2_regexec;
     pcre2_regfree;
-  local:
-    _fini;
-    _init;
 };
 
 # PCRE2_10.48 {} PCRE2_10.47;