summaryrefslogtreecommitdiff
path: root/dev-libs/libffi/files/libffi-3.4.4-lld-17.patch
blob: 8e87814b23bfd033b5a5c268b756389f39af2625 (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
https://bugs.gentoo.org/915086
https://github.com/libffi/libffi/pull/800

From 65f6869fd74630a9252ef89971b725b921f17061 Mon Sep 17 00:00:00 2001
From: Alfred Wingate <parona@protonmail.com>
Date: Tue, 10 Oct 2023 06:32:02 +0300
Subject: [PATCH] Put optional symbols behind ifdefs

Signed-off-by: Alfred Wingate <parona@protonmail.com>
--- a/libffi.map.in
+++ b/libffi.map.in
@@ -33,7 +33,10 @@ LIBFFI_BASE_8.0 {
 	ffi_raw_to_ptrarray;
 	ffi_raw_size;
 
+#if !FFI_NATIVE_RAW_API
 	ffi_java_raw_call;
+#endif
+
 	ffi_java_ptrarray_to_raw;
 	ffi_java_raw_to_ptrarray;
 	ffi_java_raw_size;
@@ -62,8 +65,10 @@ LIBFFI_CLOSURE_8.0 {
 	ffi_prep_closure_loc;
 	ffi_prep_raw_closure;
 	ffi_prep_raw_closure_loc;
+#if !FFI_NATIVE_RAW_API
 	ffi_prep_java_raw_closure;
 	ffi_prep_java_raw_closure_loc;
+#endif
 } LIBFFI_BASE_8.0;
 #endif