Skip to content

Commit

Permalink
Build unittest binary w/o RTTI
Browse files Browse the repository at this point in the history
Fixes: nidhugg#36
  • Loading branch information
margnus1 committed Oct 10, 2019
1 parent f07104d commit 86d7897
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions configure.ac
Expand Up @@ -24,6 +24,7 @@ AX_CXX_COMPILE_STDCXX(14, [noext])
AX_GIT_COMMIT

# Checks for libraries
AC_DEFINE([BOOST_NO_RTTI],[],[Use Boost w/o RTTI])
AX_BOOST_BASE([1.64], [], [AC_MSG_FAILURE([Boost Required!])])
AX_BOOST_UNIT_TEST_FRAMEWORK
AX_BOOST_SYSTEM
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.am
Expand Up @@ -84,7 +84,7 @@ unittest_SOURCES = \
unittest.cpp
unittest_LDADD=libnidhugg.a @BOOST_SYSTEM_LIB@ @BOOST_UNIT_TEST_FRAMEWORK_LIB@
unittest_LDFLAGS=-pthread @BOOST_LDFLAGS@
unittest_CXXFLAGS=@BOOST_CPPFLAGS@
unittest_CXXFLAGS= -fno-rtti @BOOST_CPPFLAGS@


## Run only the tests matching UTEST. Default: all.
Expand Down

0 comments on commit 86d7897

Please sign in to comment.