zfs/lib
Arvind Sankar 3e597dee11 Use abs_top_builddir when referencing libraries
libtool stores absolute paths in the dependency_libs component of the
.la files. If the Makefile for a dependent library refers to the
libraries by relative path, some libraries end up duplicated on the link
command line.

As an example, libzfs specifies libzfs_core, libnvpair and libuutil as
dependencies to be linked in. The .la file for libzfs_core also
specifies libnvpair, but using an absolute path, with the result that
libnvpair is present twice in the linker command line for producing
libzfs.

While the only thing this causes is to slightly slow down the linking,
we can avoid it by using absolute paths everywhere, including for
convenience libraries just for consistency.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Closes #10538
2020-07-10 14:26:32 -07:00
..
libavl Fixes for make dist 2020-06-26 14:20:02 -07:00
libefi Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libicp Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libnvpair Use abs_top_builddir when referencing libraries 2020-07-10 14:26:32 -07:00
libshare Fixes for make dist 2020-06-26 14:20:02 -07:00
libspl Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libtpool Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libunicode Fixes for make dist 2020-06-26 14:20:02 -07:00
libuutil Use abs_top_builddir when referencing libraries 2020-07-10 14:26:32 -07:00
libzfs Use abs_top_builddir when referencing libraries 2020-07-10 14:26:32 -07:00
libzfs_core Use abs_top_builddir when referencing libraries 2020-07-10 14:26:32 -07:00
libzpool Use abs_top_builddir when referencing libraries 2020-07-10 14:26:32 -07:00
libzutil Use abs_top_builddir when referencing libraries 2020-07-10 14:26:32 -07:00
Makefile.am Clean up lib dependencies 2020-07-10 14:26:00 -07:00