Hi all,
attached to this there is a patch to improve support for static link
for the pkg-config tool.

I will send this patch to the http://buildroot.uclibc.org/ project to
fix a build failure:
http://autobuild.buildroot.net/results/159bf5730414ca7f73dcdae95090177355193636

It's my first time sending a patch for a cvs project, i hope to get it right.

Best regards
-- 
Fabio Porcedda
If used add the libintl library to the libs.private field of popt.pc.

If static linking and libintl is used, the program that use the popt
library need to link the libintl library too, adding it to the
libs.private field is useful for programs that call
 pkg-config --static --libs popt 
output:
 -L<...> -lpopt -lintl

Signed-off-by: Fabio Porcedda <fabio.porce...@gmail.com>

Index: configure.ac
===================================================================
RCS file: /v/rpm/cvs/popt/configure.ac,v
retrieving revision 1.93
diff -u -r1.93 configure.ac
--- configure.ac	20 Jul 2014 21:22:08 -0000	1.93
+++ configure.ac	1 Mar 2015 17:57:19 -0000
@@ -374,6 +374,8 @@
 AC_SUBST([LD_VERSION_SCRIPT_FLAG])
 AM_CONDITIONAL([HAVE_LD_VERSION_SCRIPT],[test "$have_ld_version_script" = "yes"])
 
+AC_SUBST([POPT_PKGCONFIG_LIBS_PRIVATE],"$LIBINTL")
+
 # Autofu for pkgconfig 
 # Define a (hope) portable Libs pkgconfig directive that 
 # - Don't harm if the default library search path include ${libdir}
Index: popt.pc.in
===================================================================
RCS file: /v/rpm/cvs/popt/popt.pc.in,v
retrieving revision 1.3
diff -u -r1.3 popt.pc.in
--- popt.pc.in	12 Aug 2009 13:15:22 -0000	1.3
+++ popt.pc.in	1 Mar 2015 17:57:19 -0000
@@ -6,5 +6,6 @@
 Name: popt
 Version: @VERSION@
 Description: popt library.
+Libs.private: @POPT_PKGCONFIG_LIBS_PRIVATE@
 Libs: @POPT_PKGCONFIG_LIBS@
 Cflags: -I${includedir}

Reply via email to