Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 820360 Details for
Bug 874024
sys-devel/clang-15.0.1 - ld: /usr/lib/gcc/powerpc-unknown-linux-gnu/11.3.1/libatomic.so.1: error adding symbols: DSO missing from command line
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
clang-15.0.1-libclangBasic_linking.patch
clang-15.0.1-libclangBasic_linking.patch (text/plain), 1.13 KB, created by
Arfrever Frehtes Taifersar Arahesis
on 2022-10-05 00:59:02 UTC
(
hide
)
Description:
clang-15.0.1-libclangBasic_linking.patch
Filename:
MIME Type:
Creator:
Arfrever Frehtes Taifersar Arahesis
Created:
2022-10-05 00:59:02 UTC
Size:
1.13 KB
patch
obsolete
>--- /clang/lib/Basic/CMakeLists.txt >+++ /clang/lib/Basic/CMakeLists.txt >@@ -110,3 +110,24 @@ > omp_gen > ) > >+# libclangBasic compiled by GCC at least on 32-bit PowerPC may contain reference >+# to __atomic_load_8. >+# Link against library libatomic provided by GCC. >+if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") >+ # Use options --push-state, --as-needed and --pop-state if linker is known >+ # to support them. >+ if (LLVM_LINKER_IS_GNULD OR LLVM_LINKER_IS_GOLD OR LLVM_LINKER_IS_LLD OR LLVM_LINKER_IS_MOLD) >+ target_link_libraries(clangBasic >+ PRIVATE >+ "-Wl,--push-state" >+ "-Wl,--as-needed" >+ atomic >+ "-Wl,--pop-state" >+ ) >+ else() >+ target_link_libraries(clangBasic >+ PRIVATE >+ atomic >+ ) >+ endif() >+endif() >--- /llvm/cmake/modules/AddLLVM.cmake >+++ /llvm/cmake/modules/AddLLVM.cmake >@@ -212,6 +212,7 @@ > else() > if("${stdout}" MATCHES "^mold") > set(LLVM_LINKER_DETECTED YES CACHE INTERNAL "") >+ set(LLVM_LINKER_IS_MOLD YES CACHE INTERNAL "") > message(STATUS "Linker detection: mold") > elseif("${stdout}" MATCHES "GNU gold") > set(LLVM_LINKER_DETECTED YES CACHE INTERNAL "")
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 874024
:
815395
|
815398
|
816109
|
818470
|
818473
|
820360
|
820363
|
820366
|
820816
|
820819
|
820822
|
821389
|
821752
|
822931
|
822937
|
822943