Commit 4300c421 by Thomas Fitzsimmons Committed by Thomas Fitzsimmons

re PR libgcj/20292 (new test case PR16923 fails)

2005-03-03  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.

From-SVN: r95848
parent 59c982fe
2005-03-03 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.
2005-02-23 David Daney <ddaney@avtrex.com> 2005-02-23 David Daney <ddaney@avtrex.com>
* configure.host: Don't use -mxgot for MIPS builds. * configure.host: Don't use -mxgot for MIPS builds.
......
...@@ -194,6 +194,9 @@ proc gcj_jni_invocation_compile_c_to_binary {file {options {}}} { ...@@ -194,6 +194,9 @@ proc gcj_jni_invocation_compile_c_to_binary {file {options {}}} {
set filename [file tail $file] set filename [file tail $file]
set name [file rootname $filename] set name [file rootname $filename]
# Find the generated header.
lappend options "additional_flags=-I. -I.."
# Find jni.h. # Find jni.h.
lappend options "additional_flags=-I$srcdir/../include" lappend options "additional_flags=-I$srcdir/../include"
...@@ -235,7 +238,7 @@ proc gcj_jni_invocation_test_one {file} { ...@@ -235,7 +238,7 @@ proc gcj_jni_invocation_test_one {file} {
pass "bytecompile $file" pass "bytecompile $file"
set cfile [file rootname $file].c set cfile [file rootname $file].c
set cxxflags "-lgcj" set cxxflags "-L../.libs -lgcj"
if {! [gcj_jni_invocation_compile_c_to_binary $cfile $cxxflags]} { if {! [gcj_jni_invocation_compile_c_to_binary $cfile $cxxflags]} {
# FIXME # FIXME
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment