bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shouldn't LTPPFCCOMPILE have --tag=FC?


From: Ralf Wildenhues
Subject: Re: Shouldn't LTPPFCCOMPILE have --tag=FC?
Date: Sun, 9 Nov 2008 22:38:50 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hello Tom,

thanks for the report.

* Tom Epperly wrote on Thu, Nov 06, 2008 at 06:30:03PM CET:
> LTPPF77COMPILE has "--tag=F77". Shouldn't LTPPFCCOMPILE have
> "--tag=FC"?

Yes, it should.  In my example project, it does too, though:

LTPPFCCOMPILE = $(LIBTOOL) --tag=FC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
        --mode=compile $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
        $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS)

I tried this with branch-1-10 and master, and while the latter has some
Fortran improvements, the former doesn't have any Fortran-related
changes over 1.10.1 IIRC.

> Here is an excerpt from a generated Makefile.in:

> LTPPFCCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
>     --mode=compile $(FC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
>     $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FCFLAGS) $(FCFLAGS)

FWIW here's the example I tried (I think it is only guaranteed to be
portable with Automake master, but should work fine with gfortran also
with 1.10.x).

Not sure yet where the difference comes from.

Cheers,
Ralf

configure.ac:
AC_INIT([fort6], [1.0])
AM_INIT_AUTOMAKE
AC_CONFIG_FILES([Makefile])
AC_PROG_F77
AC_PROG_FC
AC_FC_SRCEXT([F90], [],
  [AC_MSG_FAILURE([$FC compiler cannot create executables], 77)])
AC_FC_LIBRARY_LDFLAGS
LT_PREREQ([2.0])
AC_PROG_LIBTOOL
AC_OUTPUT


Makefile.am:
bin_PROGRAMS = hello
lib_LTLIBRARIES = libhello.la
noinst_LTLIBRARIES = libgoodbye.la
hello_SOURCES = hello.f
hello_LDADD = libhello.la
libhello_la_SOURCES = foo.F90 sub/bar.F90
libhello_la_LIBADD = libgoodbye.la
libgoodbye_la_SOURCES = bye.F90 sub/baz.F
libgoodbye_la_FCFLAGS =
LDADD = $(FCLIBS)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]