blob: eda9f2204a928c935af82c409fbd126e24c1673d [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/config/libelf.pc.in
2+++ b/config/libelf.pc.in
3@@ -8,7 +8,7 @@ Description: elfutils libelf library to
4 Version: @VERSION@
5 URL: http://elfutils.org/
6
7-Libs: -L${libdir} -lelf
8+Libs: -L${libdir} -lelf @intl_LDFLAGS@
9 Cflags: -I${includedir}
10
11 Requires.private: zlib @LIBZSTD@
12--- a/configure.ac
13+++ b/configure.ac
14@@ -728,6 +728,9 @@ dnl AM_GNU_GETTEXT_REQUIRE_VERSION suppo
15 AM_GNU_GETTEXT_VERSION([0.19.6])
16 AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.6])
17
18+case "$USE_NLS" in yes) intl_LDFLAGS="-lintl" ;; esac
19+AC_SUBST([intl_LDFLAGS])
20+
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>])