1 --- a/config/libelf.pc.in
2 +++ b/config/libelf.pc.in
3 @@ -8,7 +8,7 @@ Description: elfutils libelf library to
5 URL: http://elfutils.org/
7 -Libs: -L${libdir} -lelf
8 +Libs: -L${libdir} -lelf @intl_LDFLAGS@
9 Cflags: -I${includedir}
11 Requires.private: zlib
14 @@ -586,6 +586,9 @@ AC_CONFIG_FILES([config/libelf.pc config
15 AC_SUBST(USE_NLS, yes)
18 +case "$USE_NLS" in yes) intl_LDFLAGS="-lintl" ;; esac
19 +AC_SUBST([intl_LDFLAGS])
21 dnl Appended to the config.h file.
22 dnl We hide all kinds of configuration magic in lib/eu-config.h.
23 AH_BOTTOM([#include <eu-config.h>])
24 --- a/libasm/libasmP.h
25 +++ b/libasm/libasmP.h
30 +#ifdef _ /* fix libintl-stub */
33 /* gettext helper macros. */
34 #define _(Str) dgettext ("elfutils", Str)
42 +#ifdef _ /* fix libintl-stub */
46 /* gettext helper macros. */
47 #define _(Str) dgettext ("elfutils", Str)
48 --- a/libdwfl/libdwflP.h
49 +++ b/libdwfl/libdwflP.h
52 typedef struct Dwfl_Process Dwfl_Process;
54 +#ifdef _ /* fix libintl-stub */
57 /* gettext helper macros. */
58 #define _(Str) dgettext ("elfutils", Str)
60 --- a/libelf/libelfP.h
61 +++ b/libelf/libelfP.h
66 +#ifdef _ /* fix libintl-stub */
69 /* gettext helper macros. */
70 #define _(Str) dgettext ("elfutils", Str)