mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 21:32:58 +00:00
3e597dee11
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
20 lines
530 B
Makefile
20 lines
530 B
Makefile
include $(top_srcdir)/config/Rules.am
|
|
|
|
AM_CFLAGS += $(LIBCRYPTO_CFLAGS)
|
|
|
|
pammodule_LTLIBRARIES=pam_zfs_key.la
|
|
|
|
pam_zfs_key_la_SOURCES = pam_zfs_key.c
|
|
|
|
pam_zfs_key_la_LIBADD = \
|
|
$(abs_top_builddir)/lib/libnvpair/libnvpair.la \
|
|
$(abs_top_builddir)/lib/libuutil/libuutil.la \
|
|
$(abs_top_builddir)/lib/libzfs/libzfs.la \
|
|
$(abs_top_builddir)/lib/libzfs_core/libzfs_core.la
|
|
|
|
pam_zfs_key_la_LDFLAGS = -version-info 1:0:0 -avoid-version -module -shared
|
|
|
|
pam_zfs_key_la_LIBADD += -lpam $(LIBCRYPTO_LIBS)
|
|
|
|
dist_pamconfigs_DATA = zfs_key
|