Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14864803
D12946.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
674 B
Subscribers
None
D12946.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, May 20, 22:28 (21 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5866062
Default Alt Text
D12946.diff (674 B)
Attached To
D12946: [cmake] Fix a potential version mismatch in BerkeleyDB
Event Timeline
Log In to Comment