automake
[Top][All Lists]
Advanced

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

Re: Multiple source files with the same name


From: Kevin Ryde
Subject: Re: Multiple source files with the same name
Date: 16 Oct 2001 11:28:39 +1000
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.5

Martin Frydl <address@hidden> writes:
> 
>       lib_LTLIBRARIES = libmylib.la
>       libmylib_la_SOURCES = file.cpp subdir/file.cpp
> 
>       Is there any possibility how to use multiple files with the same name
> as sources for one library (program)?

GMP does that sort of thing with a convenience library in the
subdirectory to get .lo files built, then

        libmylib_la_LIBADD = subdir/foo.lo

or subdir/foo$U.lo if using ansi2knr.

The .lo is because if libtool is given the convenience library
directly then it uses PIC objects in the static library (or at least
that was so last time I checked).

> Or should I rename them so that they don't collide?

Might be easier.  GNU "strip" doesn't enjoy same-named objects in a .a
library for instance.



reply via email to

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