mirror_zfs/cmd
Richard Yao 31fc19399e Generate libraries with correct DT_NEEDED entries
Libraries that depend on other libraries should list them in ELF's
DT_NEEDED field so that programs linking to them do not need to specify
those libraries unless they depend on them as well. This is not the case
in the current code and the consequence is that anything that needs a
library must know its dependencies. This is fragile and caused GRUB2's
configure script to break when a dependency was added on libblkid in
libzfs.

This resolves that problem by using LIBADD/LDADD to specify libraries in
Makefile.am instead of LDFLAGS. This ensures that proper DT_NEEDED
entries are generated and prevents GRUB2's configure script from
breaking in the presence of a libblkid dependency. This also removes
unneeded dependencies from various files.

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #1751
2013-10-10 16:56:51 -07:00
..
arcstat Modified arcstat.py to run on linux 2013-06-18 15:43:15 -07:00
fsck_zfs Add /sbin/fsck.zfs helper 2013-01-09 16:54:58 -08:00
mount_zfs Generate libraries with correct DT_NEEDED entries 2013-10-10 16:56:51 -07:00
vdev_id vdev_id: improve keyword parsing flexibility 2013-01-25 13:44:32 -08:00
zdb Generate libraries with correct DT_NEEDED entries 2013-10-10 16:56:51 -07:00
zfs Generate libraries with correct DT_NEEDED entries 2013-10-10 16:56:51 -07:00
zhack Generate libraries with correct DT_NEEDED entries 2013-10-10 16:56:51 -07:00
zinject Generate libraries with correct DT_NEEDED entries 2013-10-10 16:56:51 -07:00
zpios Refresh links to web site 2013-03-06 15:46:41 -08:00
zpool Generate libraries with correct DT_NEEDED entries 2013-10-10 16:56:51 -07:00
zstreamdump Generate libraries with correct DT_NEEDED entries 2013-10-10 16:56:51 -07:00
ztest Generate libraries with correct DT_NEEDED entries 2013-10-10 16:56:51 -07:00
zvol_id Remove autotools products 2012-08-27 11:47:44 -07:00
Makefile.am Modified arcstat.py to run on linux 2013-06-18 15:43:15 -07:00