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]

Re: sub-project link problem


>>>>> "Lars" == Lars J Aas <larsa@sim.no> writes:

Lars> The problem is that when it's time to link against the C++
Lars> library in the parent project, a C linker is chosen, which fails
Lars> on a lot of platforms (IRIX is one of them).

Lars> Does anyone know why $(LINK) is chosen instead of $(CXXLINK) in
Lars> the subproject, even though it's a C++ project, using the C++
Lars> compiler while compiling the objects?

Automake should always choose the C++ linker if a C++ source file is
seen.  If you only have C source files, then automake has no way of
knowing that the library is a C++ library.  I assume this isn't the
case for you, in which case you've found a bug.  Could you make a
smaller test case?

Tom


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