Hi, I'm using libtool-2.4.2.
My package includes a dlopen'able module and a shareable library against which it links. Here's the gist of the automake recipe: #------------------- # exported support routines lib_LTLIBRARIES = liblua_udunits2.la #------------------- # dlopen'able module luaclib_LTLIBRARIES = udunits2.la udunits2_la_LIBADD = $(UDUNITS2_LIBS) liblua_udunits2.la udunits2_la_LDFLAGS = -module On my system I install into a staging area (/proj/axaf/simul/pkgs) and then use graft (similar to GNU stow) to perform the final installation (to /proj/axaf/simul). The configure command looks like: ./configure --srcdir=/data/pelf1/dj/hd0/axaf/src/lua_udunits2 --prefix=/proj/axaf/simul --exec-prefix=/proj/axaf/simul/x86_64-linux_debian-5.0 and the installation is performed via make AM_MAKEFLAGS="DESTDIR=/proj/axaf/simul/pkgs prefix=/lua_udunits2-0.1.2_01 exec_prefix=/lua_udunits2-0.1.2_01/x86_64-linux_debian-5.0" install This results in a libtool invocation of /bin/sh ../libtool --mode=install /usr/bin/install -c udunits2.la '/proj/axaf/simul/pkgs/lua_udunits2-0.1.2_01/x86_64-linux_debian-5.0/lib/lua/5.1' which fails with: libtool: install: error: cannot install `udunits2.la' to a directory not ending in /proj/axaf/simul/x86_64-linux_debian-5.0/lib/lua/5.1 I believe the problem is that I'm linking the dlopen'able module against a library which hasn't yet been installed (as it is part of the distribution). I haven't been able to distill anything from the libtool documentation which would touches upon this issue. Is this the correct diagnosis and is there a fix? Thanks! Diab _______________________________________________ https://lists.gnu.org/mailman/listinfo/libtool