From: Peter O'Gorman Date: Fri, 7 Mar 2008 08:07:50 +0000 (+0000) Subject: * tests/convenience.at (Java convenience archives): Skip test if X-Git-Tag: v2.2.2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8314993c63f039b59196fa12e4627d547f41d6ec;p=thirdparty%2Flibtool.git * tests/convenience.at (Java convenience archives): Skip test if gcj cannot compile a working executable from .java files. Report by Nelson H. F. Beebe. --- diff --git a/ChangeLog b/ChangeLog index 844a205d2..eb407cbf0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-03-07 Peter O'Gorman + * tests/convenience.at (Java convenience archives): Skip test if + gcj cannot compile a working executable from .java files. + Report by Nelson H. F. Beebe. + * libltdl/m4/libtool.m4 (_LT_LANG_GCJ_CONFIG): Need to set LD. Reported by Nelson H. F. Beebe. diff --git a/tests/convenience.at b/tests/convenience.at index c1efa0a42..7834bff53 100644 --- a/tests/convenience.at +++ b/tests/convenience.at @@ -262,8 +262,10 @@ EOF # There are just too many broken gcj installations out there, either missing # libgcj.spec or unable to find it. Skip this test for them. if test $i -eq 1; then - AT_CHECK[($GCJ $GCJFLAGS -c foo1.java || exit 77], [], [ignore], [ignore]) - rm -f foo1.o foo1.obj + AT_CHECK([$GCJ $GCJFLAGS -c foo1.java || exit 77], [], [ignore], [ignore]) + AT_CHECK([$GCJ $GCJFLAGS --main=foo1 -o foo1 foo1.java A1.java || exit 77],[],[ignore],[ignore]) + AT_CHECK([./foo1$EXEEXT || exit 77],[],[ignore],[ignore]) + rm -f foo1.o foo1.obj foo1$EXEEXT fi $LIBTOOL --tag=GCJ --mode=compile $GCJ $GCJFLAGS -c foo$i.java