From: caro Date: Fri, 3 Jun 2011 07:46:15 +0000 (+0000) Subject: Eina: fix static linking with eina X-Git-Tag: 2.0_alpha~70^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0924c4c420532966699e9543ae30d48574d26918;p=framework%2Fuifw%2Feina.git Eina: fix static linking with eina Fix static linking with eina (iconv could potentially not be passed to the linker) git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@59914 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/ChangeLog b/ChangeLog index a664a01..db14e53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -101,3 +101,8 @@ 2011-05-31 Cedric Bail * Fix eina_hash_set to handle data == NULL like eina_hash_del. + +2011-06-3 Vincent Torri + + * Fix static linking with eina (iconv could potentially not be + passed to the linker) diff --git a/configure.ac b/configure.ac index a917ba5..ba43320 100644 --- a/configure.ac +++ b/configure.ac @@ -482,6 +482,7 @@ AC_ARG_WITH([iconv-link], [ LIBS="$withval $LIBS" have_iconv="yes" + iconv_libs=$withval ]) AC_MSG_CHECKING(for explicit iconv link options) @@ -529,7 +530,10 @@ iconv_t ic; size_t count; count = iconv(ic, NULL, NULL, NULL, NULL); ]])], - [have_iconv="yes"], + [ + have_iconv="yes" + iconv_libs="-liconv" + ], [ have_iconv="no" LIBS=${LIBS_save} @@ -553,7 +557,10 @@ count = iconv(ic, NULL, NULL, NULL, NULL); iconv_t ic; size_t count = iconv(ic, NULL, NULL, NULL, NULL); ]])], - [have_iconv="yes"], + [ + have_iconv="yes" + iconv_libs="-liconv_plug" + ], [ have_iconv="no" LIBS=${LIBS_save} @@ -563,6 +570,8 @@ size_t count = iconv(ic, NULL, NULL, NULL, NULL); fi fi +AC_SUBST([iconv_libs]) + if test "x${have_iconv}" = "xyes" ; then AC_DEFINE([HAVE_ICONV], [1], [Set to 1 if iconv library is installed]) fi diff --git a/eina.pc.in b/eina.pc.in index 1a5a745..3995be0 100644 --- a/eina.pc.in +++ b/eina.pc.in @@ -8,5 +8,5 @@ Description: A Library that implements fast data types and miscellaneous tools @pkgconfig_requires_private@: @requirement_eina@ Version: @VERSION@ Libs: -L${libdir} -leina -Libs.private: @EFL_FNMATCH_LIBS@ @EFL_PTHREAD_LIBS@ -ldl +Libs.private: @EFL_FNMATCH_LIBS@ @EFL_PTHREAD_LIBS@ @iconv_libs@ -ldl Cflags: -I${includedir}/eina-@VMAJ@ -I${includedir}/eina-@VMAJ@/eina