diff options
Diffstat (limited to 'libjava/testsuite/libjava.jni/jni.exp')
-rw-r--r-- | libjava/testsuite/libjava.jni/jni.exp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.jni/jni.exp b/libjava/testsuite/libjava.jni/jni.exp index ab22c23..623597c 100644 --- a/libjava/testsuite/libjava.jni/jni.exp +++ b/libjava/testsuite/libjava.jni/jni.exp @@ -29,6 +29,10 @@ proc gcj_jni_compile_c_to_so {file {options {}}} { set name [file rootname $filename] set soname lib${name}.${so_extension} + if { [istarget "*arm-*eabi*"] } { + lappend options "additional_flags=-fexceptions" + } + lappend options "additional_flags=${so_flag} -fPIC" # Find the generated header. lappend options "additional_flags=-I. -I.. -I$srcdir/$subdir -fdollars-in-identifiers" |