This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Install libgfortranbegin.a as compiler library instead of system library
- From: FX Coudert <fxcoudert at gmail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches patches <gcc-patches at gcc dot gnu dot org>, DJ Delorie <dj at redhat dot com>, aoliva at redhat dot com, neroden at gcc dot gnu dot org
- Date: Wed, 27 Sep 2006 23:58:28 +0200
- Subject: Re: [patch] Install libgfortranbegin.a as compiler library instead of system library
- References: <19c433eb0609260937h2f47a20awf5eba480988c25c9@mail.gmail.com> <20060926210035.GE20982@devserv.devel.redhat.com>
myexeclibdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)$
(MULTISUBDIR)
I tested with multilib on a sparc-solaris2.9 and it indeed works as
intended. Thanks Jakub!
I'll commit the following modified patch:
2006-09-27 Francois-Xavier Coudert <coudert@clipper.ens.fr>
* Makefile.am: Install libgfortranbegin inside compiler libraries
directory instead of system libraries directory.
* Makefile.in: Regenerate.
Index: libgfortran/Makefile.am
===================================================================
--- libgfortran/Makefile.am (revision 117225)
+++ libgfortran/Makefile.am (working copy)
@@ -6,11 +6,11 @@
## May be used by toolexeclibdir.
gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
-toolexeclib_LTLIBRARIES = libgfortran.la libgfortranbegin.la
-
+toolexeclib_LTLIBRARIES = libgfortran.la
libgfortran_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/
libtool-version` -lm $(extra_ldflags_libgfortran)
-## This should really go in the compiler lib dir, not the system lib
dir.
+myexeclib_LTLIBRARIES = libgfortranbegin.la
+myexeclibdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)$
(MULTISUBDIR)
libgfortranbegin_la_SOURCES = fmain.c
libgfortranbegin_la_LDFLAGS = -static