diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-02 12:29:31 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-02 12:29:31 +0000 |
commit | e363a78f9d6103e249b75e95a133ac9c5c591142 (patch) | |
tree | 1a629cc62a7b629f1442691db1f2ab7af5223c58 /libjava/configure.ac | |
parent | 1df875cc44d66ca84b5dfff7fbd60ca715ca61ae (diff) | |
download | gcc-e363a78f9d6103e249b75e95a133ac9c5c591142.tar.gz |
* configure.ac (libjava_cv_anon_version_script): New test.
(ANONVERSCRIPT): New AM_CONDITIONAL.
* configure: Rebuilt.
* Makefile.am (extra_ldflags_libjava): Link with -Wl,--version-script
if ANONVERSCRIPT.
* Makefile.in: Rebuilt.
(libgcj_la_DEPENDENCIES): Depend on libgcj.ver.
* libgcj.ver: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121499 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/configure.ac')
-rw-r--r-- | libjava/configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libjava/configure.ac b/libjava/configure.ac index ab637d4d42b..95d8cef2479 100644 --- a/libjava/configure.ac +++ b/libjava/configure.ac @@ -1553,6 +1553,19 @@ GCC_CHECK_TLS # For _Unwind_GetIPInfo. GCC_CHECK_UNWIND_GETIPINFO +# See if linker supports anonymous version scripts. +AC_CACHE_CHECK([whether ld supports anonymous version scripts], + [libjava_cv_anon_version_script], + [save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS" + libjava_cv_anon_version_script=no + CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map" + echo '{ global: globalsymb*; local: *; };' > conftest.map + AC_TRY_LINK(void globalsymbol (void) {} void localsymbol (void) {},, + [libjava_cv_anon_version_script=yes], []) + CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS" + ]) +AM_CONDITIONAL(ANONVERSCRIPT, test "$libjava_cv_anon_version_script" = yes) + # Check if linker supports static linking on a per library basis LD_START_STATIC_SPEC= LD_FINISH_STATIC_SPEC= |