X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libjava%2Fconfigure.host;h=437566a3079b5b606c4272536a8213ff560a0c22;hb=ae21cabb6d56d24385469959a35d824e26ae3dfe;hp=f1c65bcc50e5d1e0feb15e7adde1afcc4c2804d6;hpb=3bfc27ae36b5a84f1a9c357e39febf41b5912837;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libjava/configure.host b/libjava/configure.host index f1c65bcc50e..437566a3079 100644 --- a/libjava/configure.host +++ b/libjava/configure.host @@ -28,6 +28,8 @@ # pthread_self calls by caching thread IDs in a hashtable # can_unwind_signal Set to "yes" if the EH unwinder supports throwing # from a signal handler. +# disable_dladdr Set to "yes" if dladdr should not be used +# (i.e it is broken). libgcj_flags= libgcj_cflags= @@ -39,6 +41,7 @@ enable_hash_synchronization_default=no sysdeps_dir=generic slow_pthread_self= can_unwind_signal=no +disable_dladdr= case "${target_optspace}:${host}" in yes:*) @@ -87,20 +90,20 @@ case "${host}" in ;; i686-*|i586-*|i486-*|i386-*) sysdeps_dir=i386 - libgcj_flags="${libgcj_flags} -ffloat-store" + libgcj_flags="${libgcj_flags} -ffloat-store -fno-omit-frame-pointer" libgcj_interpreter=yes - libgcj_cxxflags="-D__NO_MATH_INLINES" - libgcj_cflags="-D__NO_MATH_INLINES" + libgcj_cxxflags= + libgcj_cflags= DIVIDESPEC=-fno-use-divide-subroutine enable_hash_synchronization_default=yes slow_pthread_self=yes ;; x86_64-*) - CHECKREFSPEC="%{m32:-fcheck-references}" sysdeps_dir=x86-64 libgcj_flags="${libgcj_flags} -ffloat-store -fno-omit-frame-pointer" - libgcj_cxxflags="-D__NO_MATH_INLINES" - libgcj_cflags="-D__NO_MATH_INLINES" + libgcj_cxxflags= + libgcj_cflags= + DIVIDESPEC=-f%{m32:no-}use-divide-subroutine enable_hash_synchronization_default=yes slow_pthread_self=yes libgcj_interpreter=yes @@ -112,13 +115,17 @@ case "${host}" in enable_hash_synchronization_default=yes IEEESPEC=-mieee ;; + hppa-*) + sysdeps_dir=pa + libgcj_interpreter=yes + enable_hash_synchronization_default=yes + ;; powerpc64*-*) - # libffi not ported. - with_libffi_default=no - libgcj_interpreter=no - libgcj_flags="${libgcj_flags} -mminimal-toc" - # this may not be correct sysdeps_dir=powerpc + libgcj_interpreter=yes + if [ x`$CC -print-multi-os-directory` = x../lib64 ]; then + libgcj_flags="${libgcj_flags} -mminimal-toc" + fi enable_hash_synchronization_default=yes slow_pthread_self=yes ;; @@ -131,6 +138,7 @@ case "${host}" in s390*-*) sysdeps_dir=s390 libgcj_interpreter=yes + DIVIDESPEC=-fno-use-divide-subroutine enable_hash_synchronization_default=yes ;; sparc*-*) @@ -162,6 +170,7 @@ case "${host}" in sparc*-linux* | \ ia64-* | \ x86_64*-linux* | \ + hppa*-linux* | \ sh-linux* | sh[34]*-linux*) can_unwind_signal=yes if test x$slow_pthread_self = xyes \ @@ -214,14 +223,34 @@ EOF rm -f conftest conftest.c fi ;; - *-*-darwin*) - enable_hash_synchronization_default=no + mips*-*-linux* ) + sysdeps_dir=mips + can_unwind_signal=yes + libgcj_interpreter=yes + libgcj_flags="${libgcj_flags} -mxgot" + DIVIDESPEC=-fno-use-divide-subroutine + case "${host}" in + mipsel*-linux* | mipsisa32el*-linux*) + enable_hash_synchronization_default=yes + disable_dladdr=yes + ;; + esac + ;; + powerpc*-*-darwin*) + enable_hash_synchronization_default=yes slow_pthread_self= - can_unwind_signal=no + can_unwind_signal=yes ;; *-*-freebsd*) slow_pthread_self= ;; + *-mingw*) + # FIXME: win32_exception_handler( ) in win32.cc does not do the + # right stuff yet w.r.t. SEH. Live with the following for now. + can_unwind_signal=no + CHECKREFSPEC=-fcheck-references + DIVIDESPEC=-fuse-divide-subroutine + ;; *-cygwin*) # The cygwin linker doesn't do 8-byte alignment by default, so # disable hash synchronization for now.