This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: specify a linker
- From: Alexandre Duret-Lutz <duret_g at lrde dot epita dot fr>
- To: Stéphane Genaud <genaud at icps dot u-strasbg dot fr>
- Cc: automake at gnu dot org
- Date: 14 Dec 2001 16:10:30 +0100
- Subject: Re: specify a linker
- References: <1008258002.5809.9.camel@marathon.u-strasbg.fr>
>>> "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