~ruther/guix-local

ref: cf498048aa0c9f7e76e0af029ad147e284dcde46 guix-local/gnu/packages/patches/boost-fix-transitive-linking.patch -rw-r--r-- 538 bytes
cf498048 — Vincent Legoll gnu: libsigsegv: Update to 2.13. 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Patch from https://github.com/boostorg/boost_install/issues/47
which should be included in the Boost 1.76 release.

This patch prevents CMake from explicitly linking against Boost dependencies
when building against the shared Boost libraries.
--- a/tools/boost_install/boost-install.jam
+++ b/tools/boost_install/boost-install.jam
@@ -483,7 +483,7 @@ rule generate-cmake-variant- ( target : sources * : properties * )
 
     .info "  deps3=" $(deps3) ;
 
-    if $(deps3)
+    if $(deps3) && $(link) = static
     {
         print.text