This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[patch] PR20292
- From: Thomas Fitzsimmons <fitzsim at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Thu, 03 Mar 2005 15:45:24 -0500
- Subject: [patch] PR20292
Hi,
This patch fixes DejaGNU glue I added to run the PR16923 test case. The
test was failing to compile in the absence of an installed tree. OK for
mainline and gcc-4_0-branch?
Tom
2005-03-02 Thomas Fitzsimmons <fitzsim@redhat.com>
PR libgcj/20292
* testsuite/libjava.jni/jni.exp
(gcj_jni_invocation_compile_c_to_binary): Add -I. -I.. to compile
flags.
(gcj_jni_invocation_test_one): Add -L../.libs to cxx flags.
Index: testsuite/libjava.jni/jni.exp
===================================================================
RCS file: /cvs/gcc/gcc/libjava/testsuite/libjava.jni/jni.exp,v
retrieving revision 1.18
diff -u -r1.18 jni.exp
--- testsuite/libjava.jni/jni.exp 23 Feb 2005 17:36:25 -0000 1.18
+++ testsuite/libjava.jni/jni.exp 2 Mar 2005 23:18:16 -0000
@@ -194,6 +194,9 @@
set filename [file tail $file]
set name [file rootname $filename]
+ # Find the generated header.
+ lappend options "additional_flags=-I. -I.."
+
# Find jni.h.
lappend options "additional_flags=-I$srcdir/../include"
@@ -235,7 +238,7 @@
pass "bytecompile $file"
set cfile [file rootname $file].c
- set cxxflags "-lgcj"
+ set cxxflags "-L../.libs -lgcj"
if {! [gcj_jni_invocation_compile_c_to_binary $cfile $cxxflags]} {
# FIXME