[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gettext: -lintl if necessary
From: |
Simon Josefsson |
Subject: |
gettext: -lintl if necessary |
Date: |
Fri, 16 Jun 2006 18:11:04 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
(Sorry if this is a dupe, didn't see it delivered.)
The gettext module brings in the proper -I's to make gettext calls
work, but doesn't bring in the library. On mingw, it isn't sufficient
to add -lintl when I use the gnulib library, it has to be specified
when the gnulib library is linked. The patch seems to work fine for
me.
2006-06-16 Simon Josefsson <address@hidden>
* modules/gettext (Makefile.am): Link to libintl when necessary.
Index: modules/gettext
===================================================================
RCS file: /sources/gnulib/gnulib/modules/gettext,v
retrieving revision 1.13
diff -u -p -r1.13 gettext
--- modules/gettext 24 Apr 2006 11:35:07 -0000 1.13
+++ modules/gettext 16 Jun 2006 16:09:11 -0000
@@ -48,6 +48,12 @@ Makefile.am:
# directory contains no libintl.h file) or when the project does not use
# "gettextize --intl".
AM_CPPFLAGS += -I$(top_builddir)/intl
+# We also need to link to libintl, if needed.
+if GL_COND_LIBTOOL
+lib_LIBADD += $(LTLIBINTL)
+else
+lib_LIBADD += $(LIBINTL)
+endif
Include:
"gettext.h"
- gettext: -lintl if necessary,
Simon Josefsson <=
- Re: [bug-gnulib] gettext: -lintl if necessary, Bruno Haible, 2006/06/16
- Re: [bug-gnulib] gettext: -lintl if necessary, Paul Eggert, 2006/06/16
- Re: [bug-gnulib] gettext: -lintl if necessary, Paul Eggert, 2006/06/19
- Re: [bug-gnulib] gettext: -lintl if necessary, Ralf Wildenhues, 2006/06/19
- Re: [bug-gnulib] gettext: -lintl if necessary, Paul Eggert, 2006/06/19
- Re: [bug-gnulib] gettext: -lintl if necessary, Ralf Wildenhues, 2006/06/19