diff options
author | Jack Howarth <howarth@bromo.med.uc.edu> | 2010-09-21 14:01:43 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2010-09-21 14:01:43 +0000 |
commit | d80148b8d4443eb6fbe55d603854407818a86383 (patch) | |
tree | 04f4e0495f2c878a79910cb42553470c05710557 /libjava/configure | |
parent | c9cdcaa5905985e8c97e3cbb0d9c6db3ab707910 (diff) | |
download | gcc-d80148b8d4443eb6fbe55d603854407818a86383.zip gcc-d80148b8d4443eb6fbe55d603854407818a86383.tar.gz gcc-d80148b8d4443eb6fbe55d603854407818a86383.tar.bz2 |
configure.ac: Set LIBMATHSPEC to -lm except on darwin.
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.
From-SVN: r164478
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 8fa4baf..80a59d6 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; } |