How can I create one autotools project against another autotoolset project that is not installed?

Let's say I have two projects for autotets:

  • libmyutils
  • libmypackage

The libmypackage library has a dependency on libmyutils. Is there a way to have the libmypackage link and reference the libmyutils package without actually installing it? Or do I need to install libmyutils so libmypackage can access it?

Example:

# Contains src/*, configure, etc.
~/workspaces/libmyutils

# Contains src/*, configure, etc.
~/workspaces/libmypackage

The problem is that I want to save libmyutils as my own package so that other libraries can use it (libmypackage2, libmypackage3, etc.), but since I can actively develop both libmyutils and libmypackage, I would like avoid having to compile and install libmyutils every time I make changes.

?

+3
1

, , libmylib_la_LIBADD vars, , lib, / lib .....

libmyapplib_la_LIBADD = -lpthread $(top_builddir)/components/common/libmyutils.la

, , configure --prefix = , lib

+1

Source: https://habr.com/ru/post/1708778/


All Articles