From ebf329bf38e312e8355964bc19157d8e7af3ca0c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 29 Mar 2020 11:52:03 +0100 Subject: Remove lib shared library, build static --- netfs/lib/Jamfile.jam | 9 ++++++--- netfs/lib/entCache.cpp | 20 +++++++++----------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/netfs/lib/Jamfile.jam b/netfs/lib/Jamfile.jam index a2d3454..e1199a8 100644 --- a/netfs/lib/Jamfile.jam +++ b/netfs/lib/Jamfile.jam @@ -2,10 +2,13 @@ lib netfs-common : [ glob *.cpp ] : ../ice - ../ice//netfs-api - ..//adhocutil - ../ice//netfs-api + static + ..//adhocutil/shared + ../ice//netfs-api/shared + -fPIC : : . + ../ice//netfs-api/shared + ..//adhocutil/shared ; diff --git a/netfs/lib/entCache.cpp b/netfs/lib/entCache.cpp index 0e8e638..26d275b 100644 --- a/netfs/lib/entCache.cpp +++ b/netfs/lib/entCache.cpp @@ -3,8 +3,6 @@ #include #include #include -#include - template void @@ -112,18 +110,18 @@ EntCache::fillCache() const } bool -DLL_PUBLIC Group::hasMember(uid_t u) const +Group::hasMember(uid_t u) const { return (members.find(u) != members.end()); } -template std::shared_ptr DLL_PUBLIC EntCache::getEntry(const std::string &) const; -template std::shared_ptr DLL_PUBLIC EntCache::getEntry(const uid_t &) const; -template DLL_PUBLIC void EntCache::getName(const gid_t &, std::string *) const; -template DLL_PUBLIC void EntCache::getID(const std::string &, gid_t *) const; +template std::shared_ptr EntCache::getEntry(const std::string &) const; +template std::shared_ptr EntCache::getEntry(const uid_t &) const; +template void EntCache::getName(const gid_t &, std::string *) const; +template void EntCache::getID(const std::string &, gid_t *) const; -template std::shared_ptr DLL_PUBLIC EntCache::getEntry(const std::string &) const; -template std::shared_ptr DLL_PUBLIC EntCache::getEntry(const gid_t &) const; -template DLL_PUBLIC void EntCache::getName(const gid_t &, std::string *) const; -template DLL_PUBLIC void EntCache::getID(const std::string &, gid_t *) const; +template std::shared_ptr EntCache::getEntry(const std::string &) const; +template std::shared_ptr EntCache::getEntry(const gid_t &) const; +template void EntCache::getName(const gid_t &, std::string *) const; +template void EntCache::getID(const std::string &, gid_t *) const; -- cgit v1.2.3