From 2f6799a42360a995b665244b922ebd3b2275c839 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Tue, 28 Jul 2015 10:38:10 -0400 Subject: Replace my bounds-checked numeric conversion with Boost’s MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Boost provides numeric_cast, which is much better than what I was using for safe numeric type conversion. This does introduce a Boost dependency, but that tends to be true of most nontrivial C++ programs, so it’s pretty reasonable. --- Makefile.am | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 3cc46e9..cba5a94 100644 --- a/Makefile.am +++ b/Makefile.am @@ -16,7 +16,8 @@ ACLOCAL_AMFLAGS = -I m4 CPPFLAGS = \ -Wall \ - -D_FORTIFY_SOURCE=2 + -D_FORTIFY_SOURCE=2 \ + $(BOOST_CPPFLAGS) CXXFLAGS = \ -std=c++11 \ @@ -53,7 +54,8 @@ liburweb_regex_la_DATA = \ liburweb_regex_la_LIBADD = -lurweb liburweb_regex_la_LDFLAGS = \ - -export-symbols-regex '^uw_Regex_' + -export-symbols-regex '^uw_Regex_' \ + $(BOOST_LDFLAGS) liburweb_regex_ladir = $(datadir)/urweb/ur/regex -- cgit v1.2.3