Dynamic linker

Carmelo AMOROSO carmelo.amoroso at st.com
Thu Mar 24 17:04:56 UTC 2011


On 3/24/2011 12:03 AM, Mike Frysinger wrote:
> from Gentoo:
> # force ncurses linking #71420
> sed -i -e 's:^SHLIB_LIBS=:SHLIB_LIBS=-lncurses:' support/shobj-conf || die "sed"
> -mike

My colleague Salvo has found that libreadline has the following line
commented-out in the configure

echo $ECHO_N "checking configuration for building shared libraries...
$ECHO_C" >&6
        eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh}
${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v
${host_vendor}`

#       case "$SHLIB_LIBS" in
#       *curses*|*termcap*|*termlib*)   ;;
#       *)                      SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;;
#       esac

So, even if TERMCAP_LIB is set (termcap or ncurses doesn't matter), the
SHLIB_LIBS is not updated.

This code has been added in readline as it is, I mean always commented
(and it is the same in the latest version too).

If the # is removed, libreadline will have the correct DT_NEEDED.

So who won the 200$ prize ? :-)

Carmelo
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc
> 


More information about the uClibc mailing list