[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Newbie: Shared library with subdirs & convenience libs
From: |
Αλέξανδρος Καρυπίδης (Alexandros Karypidis) |
Subject: |
Re: Newbie: Shared library with subdirs & convenience libs |
Date: |
Fri, 1 Feb 2002 14:56:53 +0200 |
>From the autobook:
`_LIBADD': Like `_LDADD', but used for static libraries and not programs.
...and I want to create a dynamically library. Anyway, in either case the
subsequent make fails and I get:
when using "libgather_la_LIBADD = lib1/libgoodbye1.la lib2/libgoodbye2.la"
make[2]: Entering directory `/offline/MyWork/Code/C/gnu_build_sys/src'
rpath /tmp/k/lib lib1/libgoodbye1.la lib2/libgoodbye2.la
make[2]: rpath: Command not found
make[2]: [libgather.la] Error 127 (ignored)
make[2]: Leaving directory `/offline/MyWork/Code/C/gnu_build_sys/src'
When using "libgather_la_LDADD = lib1/libgoodbye1.lo lib2/libgoodbye2.lo"
(and ignoring automake error) I get:
make[2]: Entering directory `/offline/MyWork/Code/C/gnu_build_sys/src'
rpath /tmp/k/lib
make[2]: rpath: Command not found
make[2]: [libgather.la] Error 127 (ignored)
make[2]: Leaving directory `/offline/MyWork/Code/C/gnu_build_sys/src'
> On Fri, 1 Feb 2002, [iso-8859-7] Αλέξανδρος Καρυπίδης (Alexandros
Karypidis) wrote:
> > I am trying to understand how convenience libriaries work. Using the dir
> > structure "project/src/libX", where X is 1 & 2, I want to create 2
> > convenience libraries in project/src/lib1 & project/src/lib2, then merge
> > them into a shared library in project/src. So I wrote the following 3
> > Makefile.am:
> >
> > in project/src/lib1:
> > noinst_LTLIBRARIES = libgoodbye1.la
> > libgoodbye1_la_SOURCES = goodbye1.c
> >
> > in project/src/lib2:
> > noinst_LTLIBRARIES = libgoodbye2.la
> > libgoodbye2_la_SOURCES = goodbye2.c
> >
> > in project/src:
> > SUBDIRS = lib1 lib2 .
> > lib_LTLIBRARIES = libgather.la
> > libgather_la_LDADD = lib1/libgoodbye1.la lib2/libgoodbye2.ls
> >
> > The problem is that automake now complains with:
> >
> > "src/Makefile.am:4: use `libgather_la_LIBADD', not `libgather_la_LDADD'"
>
> So why not:
>
> libgather_la_LIBADD = lib1/libgoodbye1.la lib2/libgoodbye2.la
>
> Frank
>
> Francis James Franklin
> address@hidden
>
> It's getting them wrong that is living, getting them wrong and wrong and
> wrong and then, on careful reconsideration, getting them wrong again.
> That's how we know we're alive: we're wrong.
> --- Philip Roth
- Newbie: Shared library with subdirs & convenience libs, Αλέξανδρος Καρυπίδης (Alexandros Karypidis), 2002/02/01
- Re: Newbie: Shared library with subdirs & convenience libs, F J Franklin, 2002/02/01
- Re: Newbie: Shared library with subdirs & convenience libs,
Αλέξανδρος Καρυπίδης (Alexandros Karypidis) <=
- Re: Newbie: Shared library with subdirs & convenience libs, F J Franklin, 2002/02/01
- Re: Newbie: Shared library with subdirs & convenience libs, Αλέξανδρος Καρυπίδης (Alexandros Karypidis), 2002/02/01
- Re: Newbie: Shared library with subdirs & convenience libs, Αλέξανδρος Καρυπίδης (Alexandros Karypidis), 2002/02/01
- Re: Newbie: Shared library with subdirs & convenience libs, Tom Tromey, 2002/02/02
- Re: Newbie: Shared library with subdirs & convenience libs, Αλέξανδρος Καρυπίδης (Alexandros Karypidis), 2002/02/03
- Re: Newbie: Shared library with subdirs & convenience libs, Tom Tromey, 2002/02/02
- Re: Newbie: Shared library with subdirs & convenience libs, Αλέξανδρος Καρυπίδης (Alexandros Karypidis), 2002/02/03
- Re: Newbie: Shared library with subdirs & convenience libs, Tom Tromey, 2002/02/02
- Re: Newbie: Shared library with subdirs & convenience libs, Αλέξανδρος Καρυπίδης (Alexandros Karypidis), 2002/02/03