This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Patch to not link in libgfortranbegin.a when building ftn shared libs
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: bonzini at gnu dot org
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, fxcoudert at gmail dot com, paul at codesourcery dot com, stevenb dot gcc at gmail dot com, pinskia at gmail dot com
- Date: Thu, 22 Mar 2007 09:40:04 -0700 (PDT)
- Subject: Re: Patch to not link in libgfortranbegin.a when building ftn shared libs
Paolo Bonzini wrote:
> Try writing your own rule for that, using "$(LIBTOOL) --tag=CC" instead
> of the fortran tag.
>
> Paolo
I was hoping to avoid that. In reading the automake documentation I see:
| If `library_LIBTOOLFLAGS' is not defined, the global AM_LIBTOOLFLAGS
| variable is used instead.
|
| These flags are passed to libtool after the --tag=TAG option computed by
| Automake (if any), so `library_LIBTOOLFLAGS' (or AM_LIBTOOLFLAGS) is the
| good place to override or supplement the --tag=TAG setting.
So I am trying to set "libgfortran_LIBTOOLFLAGS = --tag=CC" in
Makefile.am but it doesn't seem to be working. The documentation is
from automake 1.10 and I am using 1.9.6, maybe this is a new feature.
Steve Ellcey
sje@cup.hp.com