2010-10-06 10:35:36 readline tries to build as shared (and fails) even with --disable-shared option
Vlad Orlov (RUSSIAN FEDERATION)
Message: 94281
Since I use FLAT binary format, building shared libraries is normally disabled in vendors/config/bfin/config.arch. So CONF_OPTS used when building readline are --disable-shared and --with-curses. But somehow building shared lib still remains enabled, and I'm getting errors from make:
bfin-uclinux-gcc -shared -Wl,-elf2flt -mcpu=bf533-0.4 -lncurses -o libreadline.so.6 readline.so vi_mode.so funmap.so keymaps.so parens.so search.so rltty.so complete.so bind.so isearch.so display.so signals.so util.so kill.so undo.so macro.so input.so callback.so terminal.so text.so nls.so misc.so xmalloc.so history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so tilde.so compat.so
rm -f libhistory.so.6
bfin-uclinux-gcc -shared -Wl,-elf2flt -mcpu=bf533-0.4 -lncurses -o libhistory.so.6 history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so xmalloc.so
/opt/uClinux-2009/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/lib/crt1.o: In function `__start':
(.text+0x36): undefined reference to `_main'
/opt/uClinux-2009/bfin-uclinux/bin/../bfin-uclinux/runtime/usr/lib/crt1.o: In function `__start':
(.text+0x3a): undefined reference to `_main'
and so on. I can post the full log if needed.
Building static version of readline still goes normally.
How can I either disable building shared lib or fix those errors?
p.s. I use uClinux distribution 2009R1-RC6 on BF533 board. readline version is 6.0.
QuoteReplyEditDelete
2010-10-06 10:42:25 Re: readline tries to build as shared (and fails) even with --disable-shared option
Mike Frysinger (UNITED STATES)
Message: 94282
those errors are ignored, so why does it matter ?
QuoteReplyEditDelete
2010-10-07 06:50:28 Re: readline tries to build as shared (and fails) even with --disable-shared option
Vlad Orlov (RUSSIAN FEDERATION)
Message: 94313
Hmm, they really are. How did i miss that...
Still I'm curious if there's a way to disable shared lib completely.
QuoteReplyEditDelete
2010-10-07 11:35:42 Re: readline tries to build as shared (and fails) even with --disable-shared option
Mike Frysinger (UNITED STATES)
Message: 94317
upstream has designed it this way