summaryrefslogtreecommitdiff
path: root/libboost_thread.so
diff options
context:
space:
mode:
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