diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2012-03-06 23:33:39 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2012-03-06 23:33:39 +0400 |
commit | 19a778d05c39427cde74e1e54d1458e571a9f467 (patch) | |
tree | 46240a365ca9ae2491c3dccac1a1f56c0fc379d2 /tests/tests.am | |
parent | 77ce84e4ac017b85614a440020d6ee0d47f897a1 (diff) | |
download | bdwgc-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.am | 4 |
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 |