summaryrefslogtreecommitdiff
path: root/libboost_thread.so
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-05 01:48:17 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-05 01:48:17 +0000
commit3e5b775a47ceaf74483092ce8a3a2435f2e79647 (patch)
tree2462c2b6cd7b871e401b644de855af589d216fe5 /libboost_thread.so
parent2569db0d96fd9b63762a44ac9037d8fe756a1c31 (diff)
automatic import of boostopeneuler24.03_LTS
Diffstat (limited to 'libboost_thread.so')
-rw-r--r--libboost_thread.so21
1 files changed, 21 insertions, 0 deletions
diff --git a/libboost_thread.so b/libboost_thread.so
new file mode 100644
index 0000000..db50610
--- /dev/null
+++ b/libboost_thread.so
@@ -0,0 +1,21 @@
+changequote(`[', `]')dnl
+/* GNU ld script
+
+ Boost.Thread header files pull in enough of Boost.System that
+ symbols from the latter library are referenced by a compiled object
+ that includes Boost.Thread headers. libboost_system-mt.so is among
+ libboost_thread-mt.so's DT_NEEDED, but program linker requires that
+ missing symbols are satisfied by direct dependency, not by a
+ transitive one. Hence this linker script, which brings in the
+ Boost.System DSO. */
+
+INPUT(libboost_thread.so.VERSION)
+INPUT(libboost_system.so.VERSION)
+ifdef([HAS_ATOMIC_FLAG_LOCKFREE],[],
+[
+/* If the given architecture doesn't have lock-free implementation of
+ boost::atomic_flag, the dependency on Boost.Atomic may leak from
+ the header files to client binaries. */
+
+INPUT(libboost_atomic.so.VERSION)
+])dnl