summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-07-25 02:54:21 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-07-25 02:54:21 +0100
commit5ff111c278c06bc6c7709cb8469d1243294f9cf9 (patch)
tree099667a602e4bb1109523f7ba75243b73d9e9499
parentFix corner case of empty array in object with covering unit test and highligh... (diff)
downloadlibjsonpp-5ff111c278c06bc6c7709cb8469d1243294f9cf9.tar.bz2
libjsonpp-5ff111c278c06bc6c7709cb8469d1243294f9cf9.tar.xz
libjsonpp-5ff111c278c06bc6c7709cb8469d1243294f9cf9.zip
Visibility hidden and release lto
-rw-r--r--libjsonpp/Jamfile.jam2
-rw-r--r--libjsonpp/jsonpp.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/libjsonpp/Jamfile.jam b/libjsonpp/Jamfile.jam
index 4114e6c..1f01b09 100644
--- a/libjsonpp/Jamfile.jam
+++ b/libjsonpp/Jamfile.jam
@@ -21,6 +21,8 @@ lib jsonpp :
<include>.
<library>glibmm
<define>yyFlexLexer=jsonBaseFlexLexer
+ <cflags>-fvisibility=hidden
+ <variant>release:<cflags>-flto
: :
<include>.
;
diff --git a/libjsonpp/jsonpp.h b/libjsonpp/jsonpp.h
index f105bea..45c7415 100644
--- a/libjsonpp/jsonpp.h
+++ b/libjsonpp/jsonpp.h
@@ -8,6 +8,7 @@
#include <list>
#include <stdexcept>
+#pragma GCC visibility push(default)
namespace json {
class ParseError : public std::invalid_argument {
public:
@@ -47,6 +48,7 @@ namespace json {
void serializeNull(const Null &, std::ostream & s, const std::string & encoding);
Glib::ustring serializeObject(const Object &, const std::string & encoding);
}
+#pragma GCC visibility pop
#endif