keybuk / libnih

NIH Utility Library
GNU General Public License v2.0
90 stars 28 forks source link

Add LTLIBINTL to libnih.la #6

Closed xnox closed 1 year ago

xnox commented 11 years ago

In case intl support is not part of libc, and thus local or external libraries are needed at link time to gain NLS.

keybuk commented 10 years ago

When is intl support not part of libc?

xnox commented 10 years ago

non-glibc implementations. but then again, there is no complete port of libnih to non-glibc. The change is harmless, and wouldn't change anything on typical linux/eglibc combination. But e.g. gets libnih compiling further on pure-freebsd. This change is not needed on kfreebsd/eglibc

xnox commented 10 years ago

I believe without this fix, compiling against included intl/ is not possible (--with-included-gettext - LTLIBINTL = ${top_builddir}/intl/libintl.a). If gettext is indeed a required external dependency then it should be declared as such in configure.ac "AM_GNU_GETTEXT([external])" in which case there is no need to ship intl/ in the upstream tarball. But then one should still use $(LTLIBINT) since now one cannot know if intl is or isn't part of libc.