diff options
author | Arvind Sankar <[email protected]> | 2020-07-05 21:08:40 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-07-10 14:26:12 -0700 |
commit | 1537105a8cfecb227a2925a7889cd662224b7968 (patch) | |
tree | 0fe488b7e9bba4512318e1e7f54f17c54e045d85 /lib/libnvpair | |
parent | 4d61ade1a317606dc899e38b516410a0c2fdae0e (diff) |
Add config.rpath for AM_GNU_GETTEXT
Commit e8864b1b28c2 ("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 <[email protected]>
Signed-off-by: Arvind Sankar <[email protected]>
Closes #10538
Diffstat (limited to 'lib/libnvpair')
-rw-r--r-- | lib/libnvpair/Makefile.am | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libnvpair/Makefile.am b/lib/libnvpair/Makefile.am index c29714342..181bde9b2 100644 --- a/lib/libnvpair/Makefile.am +++ b/lib/libnvpair/Makefile.am @@ -29,11 +29,9 @@ nodist_libnvpair_la_SOURCES = \ libnvpair_la_LIBADD = \ $(top_builddir)/lib/libspl/libspl_assert.la -libnvpair_la_LIBADD += \ - $(LIBTIRPC_LIBS) +libnvpair_la_LIBADD += $(LIBTIRPC_LIBS) $(LTLIBINTL) if BUILD_FREEBSD -libnvpair_la_LIBADD += -L/usr/local/lib -lintl libnvpair_la_LDFLAGS = -version-info 3:0:0 else libnvpair_la_LDFLAGS = -version-info 1:1:0 |