diff options
Diffstat (limited to 'dev-libs/boost/files/boost-1.89.0-dll-no-lto.patch')
| -rw-r--r-- | dev-libs/boost/files/boost-1.89.0-dll-no-lto.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-libs/boost/files/boost-1.89.0-dll-no-lto.patch b/dev-libs/boost/files/boost-1.89.0-dll-no-lto.patch new file mode 100644 index 000000000000..cdbcf7606f34 --- /dev/null +++ b/dev-libs/boost/files/boost-1.89.0-dll-no-lto.patch @@ -0,0 +1,16 @@ +Unconditionally disable LTO in case it's injected from the outside. +LTO breaks the test as some symbols and sections are gone/rearranged. + +https://github.com/boostorg/dll/issues/108 + +--- a/libs/dll/test/Jamfile.v2 ++++ a/libs/dll/test/Jamfile.v2 +@@ -36,7 +36,7 @@ project + [ requires cxx11_static_assert ] + # linux + <target-os>linux:<linkflags>"-ldl" +- <toolset>gcc:<cxxflags>"-Wall -Wextra -pedantic -Wno-long-long" ++ <toolset>gcc:<cxxflags>"-Wall -Wextra -pedantic -Wno-long-long -fno-lto" + + # others + <local-visibility>hidden |
