Error linking binutils statically (was: svn commit: trunk/uClibc)

Mike Frysinger vapier at gentoo.org
Sun Dec 11 18:14:08 UTC 2005


On Sun, Dec 11, 2005 at 07:09:15PM +0100, Jan-Benedict Glaw wrote:
> On Sun, 2005-12-11 14:21:41 +0000, Mike Frysinger <vapier at gentoo.org> wrote:
> > strncmp shouldnt have been built into libiberty afaik ...
> 
> This is a fragment of libiberty's configure:
> ---------------------------------------------------------
> echo "$as_me:$LINENO: checking for working strncmp" >&5
> echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6
> if test "${ac_cv_func_strncmp_works+set}" = set; then
>   echo $ECHO_N "(cached) $ECHO_C" >&6
> else
>   if test "$cross_compiling" = yes; then
>   ac_cv_func_strncmp_works=no
> else
>   cat >conftest.$ac_ext <<_ACEOF
> 
> So in the case of cross-compilation, strncmp() is always build...

then i would run configure like this:
ac_cv_func_strncmp_works=yes \
../configure <other fun options>
-mike



More information about the uClibc mailing list