]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixing autotools '--enable-unit-tests'
authorJosh <jrosenba@cisco.com>
Mon, 8 Dec 2014 20:50:00 +0000 (14:50 -0600)
committerJosh <jrosenba@cisco.com>
Mon, 8 Dec 2014 20:50:00 +0000 (14:50 -0600)
src/Makefile.am
src/test/Makefile.am

index 456c826ff090680cdbf09597a6d670fdbe52a22f..e37c42792e288bebfe2392c140d0785d47edd2b0 100644 (file)
@@ -105,7 +105,7 @@ utils
 AM_CXXFLAGS = @AM_CXXFLAGS@
 
 if BUILD_UNIT_TESTS
-snort_LDADD += test/libtest.a
+snort_LDADD += test/libtest.a -lcheck -lrt -lpthread
 SUBDIRS += test
 endif
 
index 46212da16b22a42c2c53a14b83accf2355485c28..c2e3a10d0beb04bf6ebb6fffa90712b00080d7d0 100644 (file)
@@ -22,14 +22,14 @@ build_decl = \
     for f in `grep -whoR --include \*.cc 'TEST_SUITE[^(]*' $(top_srcdir)/src` ; do \
            echo "extern Suite* $$f();" >> suite_decl.h ; \
     done ; \
-       touch unit_test.cc
+       touch $(srcdir)/unit_test.cc
 
 build_list = \
     rm -f suite_list.h ; \
     for f in `grep -whoR --include \*.cc 'TEST_SUITE[^(]*' $(top_srcdir)/src` ; do \
         echo "$$f," >> suite_list.h ; \
     done ; \
-       touch unit_test.cc
+       touch $(srcdir)/unit_test.cc
 
 suite_decl.h:
        $(build_decl)