>From 26e900a18804c09d7281a3a6129c7f3f5b249029 Mon Sep 17 00:00:00 2001 From: Torsten Landschoff Date: Sun, 15 Nov 2009 02:03:26 +0100 Subject: [PATCH 3/5] Check that -no-undefined notices undefined symbols for C++ as well. --- tests/noundefined.at | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/tests/noundefined.at b/tests/noundefined.at index a32e4b6..b8c12a0 100644 --- a/tests/noundefined.at +++ b/tests/noundefined.at @@ -50,4 +50,8 @@ int ref_undef() LT_AT_CHECK([$LIBTOOL --mode=compile $CC $CPPFLAGS $CFLAGS -c -o problem.lo problem.c],[0],[ignore],[ignore]) LT_AT_CHECK([$LIBTOOL --mode=link $CC $CPPFLAGS $CFLAGS -shared -no-undefined -o libproblem.la -rpath /foo problem.lo],[1],[stdout],[stderr]) +LT_AT_CHECK([cp problem.c problem.cc]) +LT_AT_CHECK([$LIBTOOL --mode=compile --tag=CXX $CXX $CPPFLAGS $CFLAGS -c -o problem.lo problem.cc],[0],[ignore],[ignore]) +LT_AT_CHECK([$LIBTOOL --mode=link --tag=CXX $CXX $CPPFLAGS $CFLAGS -shared -no-undefined -o libproblem.la -rpath /foo problem.lo],[1],[stdout],[stderr]) + AT_CLEANUP -- 1.6.5.2