]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: support separate libintl
authorKarel Zak <kzak@redhat.com>
Mon, 9 Jul 2012 14:44:25 +0000 (16:44 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 9 Jul 2012 14:44:25 +0000 (16:44 +0200)
Addresses: https://github.com/karelzak/util-linux/pull/13
Reported-by: Ben Walton <bwalton@artsci.utoronto.ca>
Signed-off-by: Karel Zak <kzak@redhat.com>
Makefile.am

index 8b8368b2d1675c64ce15e7c6d8083074efdaaf4a..be5dd09fed41ad325ab785873734ffa179b289f9 100644 (file)
@@ -6,6 +6,11 @@ AM_CPPFLAGS = \
 AM_CFLAGS = -fsigned-char $(WARN_CFLAGS)
 AM_LDFLAGS =
 
+# Add gettext stuff to the global LDADD for systems with separate libintl
+# library. The LTLIBINTL is generated by AM_GNU_GETTEXT macro.
+#
+LDADD = $(LTLIBINTL)
+
 # Automake (at least up to 1.10) mishandles dist_man_MANS inside conditionals.
 # Unlike with other dist primaries, the files are not distributed if the
 # conditional is false.