summaryrefslogtreecommitdiff
path: root/tests/tests.am
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-03-06 23:33:39 +0400
committerIvan Maidanski <ivmai@mail.ru>2012-03-06 23:33:39 +0400
commit19a778d05c39427cde74e1e54d1458e571a9f467 (patch)
tree46240a365ca9ae2491c3dccac1a1f56c0fc379d2 /tests/tests.am
parent77ce84e4ac017b85614a440020d6ee0d47f897a1 (diff)
downloadbdwgc-19a778d05c39427cde74e1e54d1458e571a9f467.tar.gz
Fix configure enabling 'make check' with C++ support for Cygwin/MinGW
* configure.ac (CXXLIBS): New variable; set it to "-lsupc++" for Cygwin and MinGW if enable_cplusplus and the library is available. * tests/tests.am (test_cpp_LDADD): Use "CXXLIBS" variable.
Diffstat (limited to 'tests/tests.am')
-rw-r--r--tests/tests.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tests.am b/tests/tests.am
index 9685ae67..9864bb46 100644
--- a/tests/tests.am
+++ b/tests/tests.am
@@ -86,9 +86,9 @@ TESTS += test_cpp$(EXEEXT)
check_PROGRAMS += test_cpp
test_cpp_SOURCES = tests/test_cpp.cc
if AVOID_CPP_LIB
-test_cpp_LDADD = gc_cpp.o $(test_ldadd)
+test_cpp_LDADD = gc_cpp.o $(test_ldadd) $(CXXLIBS)
else
-test_cpp_LDADD = libgccpp.la $(test_ldadd)
+test_cpp_LDADD = libgccpp.la $(test_ldadd) $(CXXLIBS)
endif
endif