summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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