Page MenuHomePhabricator

D12946.diff
No OneTemporary

D12946.diff

diff --git a/cmake/modules/FindBerkeleyDB.cmake b/cmake/modules/FindBerkeleyDB.cmake
--- a/cmake/modules/FindBerkeleyDB.cmake
+++ b/cmake/modules/FindBerkeleyDB.cmake
@@ -43,6 +43,13 @@
endforeach()
endforeach()
+ # We need to search from the most specific to the least specific to prevent
+ # mismatches, e.g. if the include dir is /usr/include/db5.3 we want to link
+ # /usr/lib/libdb5.3.so and not libdb.so, which could very well be another
+ # version. Note that this is not only theoretical and actually happened on
+ # Archlinux with both db5.3 and db6.2 installed.
+ list(REVERSE ${VARIANTS})
+
set(${VARIANTS} ${${VARIANTS}} PARENT_SCOPE)
endfunction()

File Metadata

Mime Type
text/plain
Expires
Tue, May 20, 22:28 (18 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5866062
Default Alt Text
D12946.diff (674 B)

Event Timeline