mailing list of musl libc
 help / color / mirror / code / Atom feed
e7c4914ffa7764a308ec3bfcf79808471ff33246 blob 1037 bytes (raw)

 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
 
From 6f437b42e66c7552c3b92fd1bd46c96ed484dfbf Mon Sep 17 00:00:00 2001
From: Patrick Oppenlander <patrick.oppenlander@gmail.com>
Date: Fri, 8 Jan 2021 16:46:37 +1100
Subject: [PATCH 1/3] libcxxabi: add builtins to dynamic library link

Otherwise libc++abi.so fails to link on arm with undefined references to
some __aeabi_ builtins.
---
 libcxxabi/src/CMakeLists.txt | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libcxxabi/src/CMakeLists.txt b/libcxxabi/src/CMakeLists.txt
index 42bec421d2be..9dba22ea3d43 100644
--- a/libcxxabi/src/CMakeLists.txt
+++ b/libcxxabi/src/CMakeLists.txt
@@ -73,6 +73,11 @@ else()
   add_library_flags_if(LIBCXXABI_HAS_C_LIB c)
 endif()
 
+if (LIBCXXABI_USE_COMPILER_RT)
+  find_compiler_rt_library(builtins LIBCXXABI_BUILTINS_LIBRARY)
+  list(APPEND LIBCXXABI_SHARED_LIBRARIES "${LIBCXXABI_BUILTINS_LIBRARY}")
+endif ()
+
 if (LIBCXXABI_USE_LLVM_UNWINDER)
   # Prefer using the in-tree version of libunwind, either shared or static. If
   # none are found fall back to using -lunwind.
-- 
2.30.0

debug log:

solving e7c4914 ...
found e7c4914 in https://inbox.vuxu.org/musl/CAEg67GktBDq+_vGF4hNC47OW8TZVpQdkDR=BnqCxDYTYwBsGKg@mail.gmail.com/ ||
	https://inbox.vuxu.org/musl/CAEg67G=3RVgfYKVjaAiCfGxGeB+TxQ3A6u=XFmuWYhsKvpRAPQ@mail.gmail.com/

applying [1/2] https://inbox.vuxu.org/musl/CAEg67GktBDq+_vGF4hNC47OW8TZVpQdkDR=BnqCxDYTYwBsGKg@mail.gmail.com/
diff --git a/patches/llvm-project-11.0.0/0001-libcxxabi-add-builtins-to-dynamic-library-link.patch b/patches/llvm-project-11.0.0/0001-libcxxabi-add-builtins-to-dynamic-library-link.patch
new file mode 100644
index 0000000..e7c4914

1:25: trailing whitespace.
 
1:34: trailing whitespace.
-- 
Checking patch patches/llvm-project-11.0.0/0001-libcxxabi-add-builtins-to-dynamic-library-link.patch...
1:36: new blank line at EOF.
+
Applied patch patches/llvm-project-11.0.0/0001-libcxxabi-add-builtins-to-dynamic-library-link.patch cleanly.
warning: 3 lines add whitespace errors.

skipping https://inbox.vuxu.org/musl/CAEg67G=3RVgfYKVjaAiCfGxGeB+TxQ3A6u=XFmuWYhsKvpRAPQ@mail.gmail.com/ for e7c4914
index at:
100644 e7c4914ffa7764a308ec3bfcf79808471ff33246	patches/llvm-project-11.0.0/0001-libcxxabi-add-builtins-to-dynamic-library-link.patch

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).