Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 765265 Details for
Bug 833372
media-gfx/openvdb-9.0.0: missing libatomic
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
fix-atomic.patch
0001-openvdb-fix-missing-atomic-lib-issue.patch (text/plain), 1.48 KB, created by
Yixun Lan
on 2022-02-16 14:29:18 UTC
(
hide
)
Description:
fix-atomic.patch
Filename:
MIME Type:
Creator:
Yixun Lan
Created:
2022-02-16 14:29:18 UTC
Size:
1.48 KB
patch
obsolete
>From c9682add772e2d8c74599dcf23b951abd4ff4e89 Mon Sep 17 00:00:00 2001 >From: Yixun Lan <dlan@gentoo.org> >Date: Wed, 16 Feb 2022 22:24:16 +0800 >Subject: [PATCH] openvdb: fix missing atomic lib issue > >explicitly pass -pthread to work around pthread builtin since glibc-2.34, >as we need -pthread to pull in libatomic for machines like riscv > >Original-from: Alex Fan <alex.fan.q@gmail.com> >Signed-off-by: Yixun Lan <dlan@gentoo.org> >--- > nanovdb/nanovdb/CMakeLists.txt | 3 +++ > openvdb/openvdb/CMakeLists.txt | 3 +++ > 2 files changed, 6 insertions(+) > >diff --git a/nanovdb/nanovdb/CMakeLists.txt b/nanovdb/nanovdb/CMakeLists.txt >index 296dbb0..afc4f0c 100644 >--- a/nanovdb/nanovdb/CMakeLists.txt >+++ b/nanovdb/nanovdb/CMakeLists.txt >@@ -69,6 +69,9 @@ if(UNIX) > # forces the compiler -pthread flag vs -lpthread > set(THREADS_PREFER_PTHREAD_FLAG TRUE) > find_package(Threads REQUIRED) >+ if(CMAKE_USE_PTHREADS_INIT) >+ target_link_libraries(Threads::Threads INTERFACE -pthread) >+ endif() > endif() > > if(NANOVDB_BUILD_UNITTESTS OR NANOVDB_BUILD_BENCHMARK) >diff --git a/openvdb/openvdb/CMakeLists.txt b/openvdb/openvdb/CMakeLists.txt >index 1d5b75f..22988b7 100644 >--- a/openvdb/openvdb/CMakeLists.txt >+++ b/openvdb/openvdb/CMakeLists.txt >@@ -202,6 +202,9 @@ endif() > > if(UNIX) > find_package(Threads REQUIRED) >+ if(CMAKE_USE_PTHREADS_INIT) >+ target_link_libraries(Threads::Threads INTERFACE -pthread) >+ endif() > endif() > > # Set deps. Note that the order here is important. If we're building against >-- >2.35.1 >
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 Raw
Actions:
View
Attachments on
bug 833372
:
765143
| 765265