This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: specify a linker


>>> "sg" == Stéphane Genaud <genaud@icps.u-strasbg.fr> writes:

 sg> i am packaging an application whose source files are compiled
 sg> with g++ . In the link phase, the linker should be mpiCC .

You can override the command used to link all C++ targets:

CXXLINK = mpiCC $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@

(Setting `CXXLD=mpiCC' would achieve the same result, but
`CXXLD' is not documented.)

It's also possible to select the linker command on a per-program
basis (grep the manual for `maude_LINK').
-- 
Alexandre Duret-Lutz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]