summaryrefslogtreecommitdiff
path: root/libjava/configure
diff options
context:
space:
mode:
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-21 16:34:01 +0000
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-21 16:34:01 +0000
commit438fa195386e30cec39e88d19ec4c05411ad0e94 (patch)
tree97c913df003cc2af3990c16ba1837ecd35fbd001 /libjava/configure
parent509414a5becd65fd2602f480f93167f4a58840ed (diff)
downloadgcc-438fa195386e30cec39e88d19ec4c05411ad0e94.tar.gz
2010-04-19 Andrew Haley <aph@redhat.com>
PR libgcj/40860 * configure.ac: Handle --no-merge-exidx-entries. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158611 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/configure')
-rwxr-xr-xlibjava/configure33
1 files changed, 33 insertions, 0 deletions
diff --git a/libjava/configure b/libjava/configure
index ca3329d3944..6be8109031a 100755
--- a/libjava/configure
+++ b/libjava/configure
@@ -20520,6 +20520,39 @@ arm*linux*eabi)
;;
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; }
+if test "${libgcj_cv_exidx+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ saved_ldflags="$LDFLAGS"
+ LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
+ if test x$gcc_no_link = xyes; then
+ as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
+fi
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+int main(void){ return 0;}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ eval "libgcj_cv_exidx=yes"
+else
+ eval "libgcj_cv_exidx=no"
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS="${saved_ldflags}"
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
+$as_echo "$libgcj_cv_exidx" >&6; }
+if test "${libgcj_cv_exidx}" = "yes"; then
+ SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
+ extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
+fi
+
+