diff options
Diffstat (limited to 'indra/cmake/BerkeleyDB.cmake')
-rwxr-xr-x[-rw-r--r--] | indra/cmake/BerkeleyDB.cmake | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/indra/cmake/BerkeleyDB.cmake b/indra/cmake/BerkeleyDB.cmake index d98e79179d..ee670ac650 100644..100755 --- a/indra/cmake/BerkeleyDB.cmake +++ b/indra/cmake/BerkeleyDB.cmake @@ -1,11 +1,17 @@ # -*- cmake -*- - +include(Prebuilt) set(DB_FIND_QUIETLY ON) set(DB_FIND_REQUIRED ON) -if (STANDALONE) +if (USESYSTEMLIBS) include(FindBerkeleyDB) -else (STANDALONE) - set(DB_LIBRARIES db-4.2) +else (USESYSTEMLIBS) + if (LINUX) + # Need to add dependency pthread explicitely to support ld.gold. + use_prebuilt_binary(db) + set(DB_LIBRARIES db-5.1 pthread) + else (LINUX) + set(DB_LIBRARIES db-4.2) + endif (LINUX) set(DB_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include) -endif (STANDALONE) +endif (USESYSTEMLIBS) |