diff options
author | jb <jb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-24 09:08:52 +0000 |
---|---|---|
committer | jb <jb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-04-24 09:08:52 +0000 |
commit | ce1a737c5d8541db078a16891f5d9c60f9747bb6 (patch) | |
tree | ed8f6448a70614d0a12e305b74ca617397231177 /libgfortran/Makefile.am | |
parent | 095798e3c7fc33fce0e1ca8c05a10d89428dc6bd (diff) | |
download | gcc-ce1a737c5d8541db078a16891f5d9c60f9747bb6.tar.gz |
2007-04-24 Janne Blomqvist <jb@gcc.gnu.org>
PR fortran/27740
* configure.ac: New test to determine if symbol versioning is
supported.
* Makefile.am: Use result of above test to add appropriate linker
flags.
* gfortran.map: New file.
* configure: Regenerated.
* Makefile.in: Regenerated.
* config.h.in: Regenerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124098 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/Makefile.am')
-rw-r--r-- | libgfortran/Makefile.am | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libgfortran/Makefile.am b/libgfortran/Makefile.am index b857ffed51f..049554836f4 100644 --- a/libgfortran/Makefile.am +++ b/libgfortran/Makefile.am @@ -6,9 +6,16 @@ ACLOCAL_AMFLAGS = -I .. -I ../config ## May be used by toolexeclibdir. gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER) +## Symbol versioning (copied from libssp). +if LIBGFOR_USE_SYMVER +version_arg = -Wl,--version-script=$(srcdir)/gfortran.map +else +version_arg = +endif + toolexeclib_LTLIBRARIES = libgfortran.la libgfortran_la_LINK = $(LINK) -libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` -lm $(extra_ldflags_libgfortran) +libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` -lm $(extra_ldflags_libgfortran) $(version_arg) myexeclib_LTLIBRARIES = libgfortranbegin.la myexeclibdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)$(MULTISUBDIR) |