-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add more context to patches; merge fixes for stray
-nostdlib++
- Loading branch information
1 parent
e73c219
commit 6d71464
Showing
8 changed files
with
74 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 15 additions & 4 deletions
19
recipe/patches/0005-disable-_LIBCPP_AVAILABILITY_HAS_INIT_PRIMARY_EXCEPT.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
recipe/patches/0006-Work-around-stray-nostdlib-flags-causing-errors-with.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
From 6a49c1d89912796cd7ea3f4a9e3eb606ca553257 Mon Sep 17 00:00:00 2001 | ||
From: "H. Vetinari" <h.vetinari@gmx.com> | ||
Date: Sun, 26 May 2024 13:01:28 +1100 | ||
Subject: [PATCH 5/5] Work around stray `-nostdlib++` flags causing errors with | ||
C compiler | ||
|
||
--- | ||
libunwind/cmake/config-ix.cmake | 7 +++++-- | ||
libunwind/src/CMakeLists.txt | 6 ++++-- | ||
2 files changed, 9 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/libunwind/cmake/config-ix.cmake b/libunwind/cmake/config-ix.cmake | ||
index 126c872f0d48..ab9ea1d5ce01 100644 | ||
--- a/libunwind/cmake/config-ix.cmake | ||
+++ b/libunwind/cmake/config-ix.cmake | ||
@@ -120,8 +120,11 @@ if(FUCHSIA) | ||
set(LIBUNWIND_HAS_DL_LIB NO) | ||
set(LIBUNWIND_HAS_PTHREAD_LIB NO) | ||
else() | ||
- check_library_exists(dl dladdr "" LIBUNWIND_HAS_DL_LIB) | ||
- check_library_exists(pthread pthread_once "" LIBUNWIND_HAS_PTHREAD_LIB) | ||
+ # misdetected due to https://github.com/llvm/llvm-project/issues/90332 | ||
+ # check_library_exists(dl dladdr "" LIBUNWIND_HAS_DL_LIB) | ||
+ # check_library_exists(pthread pthread_once "" LIBUNWIND_HAS_PTHREAD_LIB) | ||
+ set(LIBUNWIND_HAS_DL_LIB YES) | ||
+ set(LIBUNWIND_HAS_PTHREAD_LIB YES) | ||
endif() | ||
|
||
if(HAIKU) | ||
diff --git a/libunwind/src/CMakeLists.txt b/libunwind/src/CMakeLists.txt | ||
index 780430ba70ba..8f53719d4007 100644 | ||
--- a/libunwind/src/CMakeLists.txt | ||
+++ b/libunwind/src/CMakeLists.txt | ||
@@ -168,7 +168,8 @@ if (LIBUNWIND_ENABLE_SHARED) | ||
set_target_properties(unwind_shared | ||
PROPERTIES | ||
LINK_FLAGS "${LIBUNWIND_LINK_FLAGS}" | ||
- LINKER_LANGUAGE C | ||
+ # changed from C due to https://github.com/llvm/llvm-project/issues/90332 | ||
+ LINKER_LANGUAGE CXX | ||
OUTPUT_NAME "${LIBUNWIND_SHARED_OUTPUT_NAME}" | ||
VERSION "1.0" | ||
SOVERSION "1" | ||
@@ -214,7 +215,8 @@ if (LIBUNWIND_ENABLE_STATIC) | ||
set_target_properties(unwind_static | ||
PROPERTIES | ||
LINK_FLAGS "${LIBUNWIND_LINK_FLAGS}" | ||
- LINKER_LANGUAGE C | ||
+ # changed from C due to https://github.com/llvm/llvm-project/issues/90332 | ||
+ LINKER_LANGUAGE CXX | ||
OUTPUT_NAME "${LIBUNWIND_STATIC_OUTPUT_NAME}" | ||
) | ||
|
32 changes: 0 additions & 32 deletions
32
recipe/patches/0006-set-CXX-as-language-for-libunwind-to-avoid-running-i.patch
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
recipe/patches/0007-avoid-misdetection-of-dl-pthread-on-linux.patch
This file was deleted.
Oops, something went wrong.