automake
[Top][All Lists]
Advanced

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

RE: dynamic selection of linker


From: Daily, Jeff A
Subject: RE: dynamic selection of linker
Date: Fri, 29 Jan 2010 11:37:14 -0800

> > The  documented automake behavior states that automake chooses the
> > linker based on a static list of source files.  This is not
> > sufficient.  I'm hoping I've missed a detail somewhere, but my
> > experience backs up the documented claims.  I've tried using
> > AM_CONDITIONALs like so:
> >
> > if NOFORT
> > else
> > MAYBE_DUMMY_F_LINK = dummy.f # does not exist
> > endif
> >
> > lib_LTLIBRARIES = libtest.la
> > libtest_la_SOURCES = # no sources, all convenience libraries
> > nodist_EXTRA_libtest_la_SOURCES = $(MAYBE_DUMMY_F_LINK)
> > libtest_la_LIBADD = mixed/libmixed.la pure_c/libpurec.la
> >
> > But regardless of whether NOFORT is true, the Fortran linker is
> always
> > chosen.  What should I be doing?  Thanks.
> 
> Override FCLD (if Makefile-global is acceptable) or libtest_la_LINK.
> 

Just to clarify, I'm using F77 and libtool.  After looking at one of the 
automake-generated Makefiles, I would need to set F77LINK=$(LINK) in this case, 
right?

Thanks,

Jeff




reply via email to

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