RPM Community Forums

Mailing List Message of <popt-devel>

Re: popt-1.13 fix for uclibc builds

From: Jeff Johnson <n3npq@mac.com>
Date: Thu 27 Mar 2008 - 18:31:29 CET
Message-Id: <E81823C1-A239-47B5-BFE7-FA9437CFAA58@mac.com>
Added, will be in popt-1.14. Thanks for the patch.

73 de Jeff

On Mar 27, 2008, at 12:01 PM, Stanislav Brabec wrote:

> Hallo.
>
> Attached patch allows to build popt-1.13 on both glibc and uclibc  
> based systems.
> Henning Heinold pointed to the problem and added @LTLIBINTL@.
> Adding AM_ICONV_LINK fixed on glibc systems.
>
> Index: popt-1.13/Makefile.am
> ===================================================================
> --- popt-1.13.orig/Makefile.am	2007-11-14 20:42:27.000000000 +0000
> +++ popt-1.13/Makefile.am	2008-03-26 22:14:05.000000000 +0000
> @@ -39,7 +39,7 @@
>  usrlib_LTLIBRARIES = libpopt.la
>
>  libpopt_la_SOURCES = popt.c findme.c poptparse.c poptconfig.c  
> popthelp.c poptint.c
> -libpopt_la_LDFLAGS = -no-undefined @LTLIBINTL@
> +libpopt_la_LDFLAGS = -no-undefined @LTLIBINTL@ @LTLIBICONV@
>
>  if HAVE_LD_VERSION_SCRIPT
>  libpopt_la_LDFLAGS += -Wl,--version-script=/libpopt.vers
> Index: popt-1.13/configure.ac
> ===================================================================
> --- popt-1.13.orig/configure.ac	2007-11-14 20:42:27.000000000 +0000
> +++ popt-1.13/configure.ac	2008-03-26 22:20:16.000000000 +0000
> @@ -95,6 +95,7 @@
>  AC_CHECK_FUNCS(getuid geteuid mtrace __secure_getenv setregid  
> strerror iconv)
>
>  AM_GNU_GETTEXT([external])
> +AM_ICONV_LINK
>
>  popt_sysconfdir=""
>  eval "popt_sysconfdir=\"\"" # expand contained
>
> -- 
> Best Regards / S pozdravem,
>
> Stanislav Brabec
> software developer
> ---------------------------------------------------------------------
> SUSE LINUX, s. r. o.                          e-mail: sbrabec@suse.cz
> Lihovarská 1060/12           tel: +420 284 028 966, +49 911 740538747
> 190 00 Praha 9                                  fax: +420 284 028 951
> Czech Republic                                    http://www.suse.cz/
>
> ______________________________________________________________________
> POPT Library                                           http://rpm5.org
> Developer Communication List                       popt-devel@rpm5.org
Received on Thu Mar 27 18:32:22 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.