]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* tests/convenience.at (Java convenience archives): Skip test if
authorPeter O'Gorman <peter@pogma.com>
Fri, 7 Mar 2008 08:07:50 +0000 (08:07 +0000)
committerPeter O'Gorman <peter@pogma.com>
Fri, 7 Mar 2008 08:07:50 +0000 (08:07 +0000)
gcj cannot compile a working executable from .java files.
Report by Nelson H. F. Beebe.

ChangeLog
tests/convenience.at

index 844a205d209647fb6cf68a30f3c6a98567354404..eb407cbf0357dfbd452611ead4b961d0fdd36d57 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-03-07  Peter O'Gorman  <peter@pogma.com>
 
+       * 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.
 
index c1efa0a429db325e37d3eed6b971833e4d31e994..7834bff53775475757d1bc4515202bf45f70d314 100644 (file)
@@ -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