Parcourir la source

build: Link u-a against libintl if libc does not have i18n support

This happens on at least Solaris and Darwin.

Signed-off-by: Guillem Jover <guillem@debian.org>
Fabian Groffen il y a 16 ans
Parent
commit
a9809fc49c
2 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 4 0
      debian/changelog
  2. 1 0
      utils/Makefile.am

+ 4 - 0
debian/changelog

@@ -7,6 +7,10 @@ dpkg (1.15.8.4) UNRELEASED; urgency=low
   * On database parsing only warn on bogus versions previously accepted,
   * On database parsing only warn on bogus versions previously accepted,
     the other instances will keep producing errors, to avoid newly
     the other instances will keep producing errors, to avoid newly
     introduced bogosity. Closes: #590885, #590896, #591692, #591885
     introduced bogosity. Closes: #590885, #590896, #591692, #591885
+  * Fix compilation on Solaris and Darwin:
+    - Link update-alternatives against libintl if libc does not have i18n
+      support.
+    Thanks to Fabian Groffen <grobian@gentoo.org>.
 
 
   [ Raphaël Hertzog ]
   [ Raphaël Hertzog ]
   * Fix make -C man install so that it actually finds the manual pages
   * Fix make -C man install so that it actually finds the manual pages

+ 1 - 0
utils/Makefile.am

@@ -25,6 +25,7 @@ update_alternatives_SOURCES = \
 
 
 update_alternatives_LDADD = \
 update_alternatives_LDADD = \
 	../lib/compat/libcompat.a \
 	../lib/compat/libcompat.a \
+	$(LIBINTL) \
 	$(UA_LIBS)
 	$(UA_LIBS)
 
 
 sbin_PROGRAMS =
 sbin_PROGRAMS =