diff options
author | iains <iains@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-21 14:01:43 +0000 |
---|---|---|
committer | iains <iains@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-09-21 14:01:43 +0000 |
commit | ea19b6641e080247627b6b45a5936e28f1945219 (patch) | |
tree | 04f4e0495f2c878a79910cb42553470c05710557 /libjava/configure | |
parent | 63d204a80648bae1cda139f539447c386935af56 (diff) | |
download | gcc-ea19b6641e080247627b6b45a5936e28f1945219.tar.gz |
2010-09-21 Jack Howarth <howarth@bromo.med.uc.edu>
* libjava/configure.ac: Set LIBMATHSPEC to -lm except on darwin.
* libjava/libgcj.spec.in: Use LIBMATHSPEC.
* libjava/configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164478 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/configure')
-rwxr-xr-x | libjava/configure | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/libjava/configure b/libjava/configure index 8fa4baffd68..80a59d6eeff 100755 --- a/libjava/configure +++ b/libjava/configure @@ -707,6 +707,7 @@ GCDEPS GCINCS GCLIBS LIBGCJTESTSPEC +LIBMATHSPEC LIBSTDCXXSPEC extra_ldflags extra_ldflags_libjava @@ -13353,7 +13354,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 13356 "configure" +#line 13357 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -13459,7 +13460,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 13462 "configure" +#line 13463 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -19438,7 +19439,7 @@ if test "${enable_sjlj_exceptions+set}" = set; then : enableval=$enable_sjlj_exceptions; : else cat > conftest.$ac_ext << EOF -#line 19441 "configure" +#line 19442 "configure" struct S { ~S(); }; void bar(); void foo() @@ -20535,6 +20536,16 @@ arm*linux*eabi) ;; esac +LIBMATHSPEC= +# extra LD Flags which are required for targets +case "${host}" in +*-*-darwin*) + ;; +*) + LIBMATHSPEC=-lm + ;; +esac + # Check for --no-merge-exidx-entries, an ARM-specific linker option. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5 $as_echo_n "checking for --no-merge-exidx-entries... " >&6; } @@ -20582,6 +20593,7 @@ fi + # Allow the GC to be disabled. Can be useful when debugging. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5 $as_echo_n "checking for garbage collector to use... " >&6; } |