> I'm not distinguishing between dynamic & static. Libraries are libraries.

I suppose you are correct.  That's supposed to be the whole purpose of 
libtool after all.  Anyway, as you suggested, I'm focusing on:

libgather_la_LIBADD = lib1/libgoodbye1.la lib2/libgoodbye2.la

Now, the only relevant difference in my configure.in compared to your example 
was the use of AC_PROG_LIBTOOL instead of AM_PROG_LIBTOOL, which I corrected, 
and still during the final make:

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)
 
What is rpath, really?  I've never come across it before.  In the autobook it 
appears as if it is just a parameter for libtool which confines searching for 
dynamic libraries in a particular directory.  Why does the Makefile try to 
call it as a program/script?

All this when I am in the following situation (to make things clear):

configure.in ---------------
AC_INIT(src/prog/hello.c)
AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE(hello, 1.0)
AC_PROG_CC
AM_PROG_LIBTOOL
AC_OUTPUT(Makefile src/Makefile src/prog/Makefile src/lib1/Makefile 
src/lib2/Makefile)

Makefile.am -----------------
AUTOMAKE_OPTIONS = foreign
SUBDIRS = src .

src/Makefile.am -------------
SUBDIRS = lib1 lib2 .
lib_LTLIBRARIES = libgather.la
libgather_la_SOURCES =
libgather_la_LIBADD = lib1/libgoodbye1.la lib2/libgoodbye2.la

src/lib1/Makefile.am -------------
noinst_LTLIBRARIES = libgoodbye1.la
libgoodbye1_la_SOURCES = goodbye1.c

src/lib2/Makefile.am -------------
noinst_LTLIBRARIES = libgoodbye2.la
libgoodbye1_la_SOURCES = goodbye2.c

It's just a couple of files, I know, but I can't seem to get this thing 
rolling! :-(

  • ... Αλέξανδρος Καρυπίδης (Alexandros Karypidis)
    • ... F J Franklin
      • ... Αλέξανδρος Καρυπίδης (Alexandros Karypidis)
        • ... F J Franklin
          • ... Αλέξανδρος Καρυπίδης (Alexandros Karypidis)
            • ... Αλέξανδρος Καρυπίδης (Alexandros Karypidis)
              • ... Tom Tromey
                • ... Αλέξανδρος Καρυπίδης (Alexandros Karypidis)
            • ... Tom Tromey
              • ... Αλέξανδρος Καρυπίδης (Alexandros Karypidis)
        • ... Tom Tromey
          • ... Αλέξανδρος Καρυπίδης (Alexandros Karypidis)

Reply via email to