toolchain/external: bump Linaro ARMeb to 2016.05 for i686 hosts
[buildroot-gz.git] / package / popt / 0004-popt.pc-add-the-libintl-library-to-the-Libs.private-.patch
blob9b0b07e383acf2fee854efb91494e6013d765b6b
1 From 470755ccc353b59107c957972d908cbde4942c8d Mon Sep 17 00:00:00 2001
2 From: Fabio Porcedda <fabio.porcedda@gmail.com>
3 Date: Sun, 1 Mar 2015 21:13:48 +0100
4 Subject: [PATCH] popt.pc: add the libintl library to the Libs.private field
6 If static linking and libintl is used, the program that uses the popt
7 library needs to link to the libintl library too so add the libintl
8 library to the libs.private field because is useful for programs that call
9 pkg-config --static --libs popt
10 they get the libintl library too:
11 -L<...> -lpopt -lintl
13 This patch was already sent upstream:
14 http://rpm5.org/community/popt-devel/0294.html
16 Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
17 ---
18 configure.ac | 1 +
19 popt.pc.in | 1 +
20 2 files changed, 2 insertions(+)
22 diff --git a/configure.ac b/configure.ac
23 index e8eb238..816d272 100644
24 --- a/configure.ac
25 +++ b/configure.ac
26 @@ -90,6 +90,7 @@ popt_sysconfdir="${sysconfdir}"
27 eval "popt_sysconfdir=\"${popt_sysconfdir}\"" # expand contained ${prefix}
28 AC_DEFINE_UNQUOTED([POPT_SYSCONFDIR], ["$popt_sysconfdir"], [Full path to default POPT configuration directory])
30 +AC_SUBST([POPT_PKGCONFIG_LIBS_PRIVATE],"$LIBINTL")
32 # Define a (hope) portable Libs pkgconfig directive that
33 # - Don't harm if the default library search path include ${libdir}
34 diff --git a/popt.pc.in b/popt.pc.in
35 index a86437c..0acfdb9 100644
36 --- a/popt.pc.in
37 +++ b/popt.pc.in
38 @@ -6,5 +6,6 @@ includedir=@includedir@
39 Name: popt
40 Version: @VERSION@
41 Description: popt library.
42 +Libs.private: @POPT_PKGCONFIG_LIBS_PRIVATE@
43 Libs: @POPT_PKGCONFIG_LIBS@
44 Cflags: -I${includedir}
45 --
46 2.3.1