RPM Community Forums

Mailing List Message of <popt-devel>

popt-1.13 fix for uclibc builds

From: Stanislav Brabec <sbrabec@suse.cz>
Date: Thu 27 Mar 2008 - 17:01:51 CET
Message-Id: <1206633711.14049.132.camel@hammer.suse.cz>
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/
Received on Thu Mar 27 17:29:01 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.