[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: building a _shared_ library from sources in different directories
From: |
Alexandre Duret-Lutz |
Subject: |
Re: building a _shared_ library from sources in different directories |
Date: |
Tue, 22 Jul 2003 00:02:12 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
>>> "Giannis" == Giannis Georgalis <address@hidden> writes:
[...]
Giannis> What I want to do, is to build a *shared* library from
Giannis> ALL the sources that are included in module1 AND
Giannis> module2 AND module3 AND module4 and then link the
Giannis> program1 and program2 against this shared library.
Giannis> My latest approach to this problem (that didn't work)
Giannis> was to have for example in module2, module3, module4
Giannis> directories a Makefile.am of the form:
[...]
Giannis> noinst_LTLIBRARIES = libmodule{2,3,4}.la
[...]
Giannis> lib_LTLIBRARIES = libproject_name.la
Giannis> libproject_name_la_LIBADD = ../module2/libmodule2.la \
Giannis> ../module3/libmodule3.la ../module4/libmodule4.la
[...]
Giannis> What am I doing wrong ?
Nothing I could see. I'm using a similar setup successfully.
1. what Autoconf/Automake/Libtool versions are you using?
2. what "didn't work"?
Giannis> Additionally, even though it isn't as important for me as the
Giannis> previous question; Is it possible to make object files being created
Giannis> in the Obj subdirectory ? -> Note that my makefiles reside in the
Giannis> module1, module2, module3, module4, program1 and program2
Giannis> subdirectories.
See the subdir-objects options.
--
Alexandre Duret-Lutz