mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-08-05 14:37:40 +03:00

Commit e8864b1b28
("config: libintl/libiconv for gettext() detection")
added an empty config.rpath with a comment that the real one doesn't
work with libtool.
However, an empty config.rpath doesn't really work: eg. on FreeBSD,
where libintl is in /usr/local/lib, configure thinks that gettext
doesn't exist and NLS should be disabled, which currently isn't
supported in the source, and hence requires manual workaround to
directly link -lintl without relying on configure. config.rpath is
essential to let it be detected either in --prefix or using
--with-libintl-prefix.
I also don't see the mentioned issue with libtool flags applied to
compilation, it seems to work fine to pass LTLIBINTL to libtool. It's
unnecessary to include LTLIBICONV as the configure test will
automatically append that to LTLIBINTL if it is necessary to link with
libiconv.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Closes #10538
21 lines
586 B
Makefile
21 lines
586 B
Makefile
include $(top_srcdir)/config/Rules.am
|
|
|
|
#
|
|
# Ignore the prefix for the mount helper. It must be installed in /sbin/
|
|
# because this path is hardcoded in the mount(8) for security reasons.
|
|
# However, if needed, the configure option --with-mounthelperdir= can be used
|
|
# to override the default install location.
|
|
#
|
|
sbindir=$(mounthelperdir)
|
|
sbin_PROGRAMS = mount.zfs
|
|
|
|
mount_zfs_SOURCES = \
|
|
mount_zfs.c
|
|
|
|
mount_zfs_LDADD = \
|
|
$(top_builddir)/lib/libzfs/libzfs.la \
|
|
$(top_builddir)/lib/libzfs_core/libzfs_core.la \
|
|
$(top_builddir)/lib/libnvpair/libnvpair.la
|
|
|
|
mount_zfs_LDADD += $(LTLIBINTL)
|