diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-02-02 13:29:31 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2007-02-02 13:29:31 +0100 |
commit | 47742ccdded540d6e157ce49f89ec4148cd27154 (patch) | |
tree | 1a629cc62a7b629f1442691db1f2ab7af5223c58 /libjava/Makefile.am | |
parent | 8aaf4681da0697653119fb541aef303da5b0aaaf (diff) | |
download | gcc-47742ccdded540d6e157ce49f89ec4148cd27154.zip gcc-47742ccdded540d6e157ce49f89ec4148cd27154.tar.gz gcc-47742ccdded540d6e157ce49f89ec4148cd27154.tar.bz2 |
configure.ac (libjava_cv_anon_version_script): New test.
* 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.
From-SVN: r121499
Diffstat (limited to 'libjava/Makefile.am')
-rw-r--r-- | libjava/Makefile.am | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libjava/Makefile.am b/libjava/Makefile.am index 0b653a8..0e7d91a 100644 --- a/libjava/Makefile.am +++ b/libjava/Makefile.am @@ -101,6 +101,10 @@ GCJ_WITH_FLAGS = $(GCJ) --encoding=UTF-8 -Wno-deprecated extra_ldflags_libjava = @extra_ldflags_libjava@ +if ANONVERSCRIPT +extra_ldflags_libjava += -Wl,--version-script=$(srcdir)/libgcj.ver +endif + GCJLINK = $(LIBTOOL) --tag=GCJ --mode=link $(GCJ) -L$(here) $(JC1FLAGS) \ $(LDFLAGS) -o $@ GCJ_FOR_ECJX = @GCJ_FOR_ECJX@ @@ -246,6 +250,9 @@ libgcj_la_DEPENDENCIES = libgcj-$(gcc_version).jar \ java/process-$(PLATFORM).lo \ $(all_packages_source_files:.list=.lo) \ $(LIBLTDL) $(libgcj_la_LIBADD) +if ANONVERSCRIPT +libgcj_la_DEPENDENCIES += $(srcdir)/libgcj.ver +endif libgcj_la_LINK = $(LIBLINK) ## A hack to make sure the various gcj-related macros, like |