Alexey Froloff wrote: > On Wed, Nov 10, 2010 at 13:49, Bram Moolenaar <[email protected]> wrote: > > So, it turns out that --as-needed cannot replace the old method from > > link.sh completely. > link.sh is a hack, while --as-needed checks symbol usage.
As the people who ran into the problems have mentioned, link.sh works fine and --as-needed doesn't. > > Since different systems put different things in libraries, and ncurses > > is especially unpredictable, how would a configure check for -ltinfo > > work? =A0Could we always add -ltinfo when it's available, and then let > > --as-needed skip ncurses when nothing is used from there? > This is what autoconf was created for: > > AC_SEARCH_LIBS([tgetflag], [tinfo other different libraries ncurses]) > > And appropriate option will be added to LIBS. It's a bit more complicated than that. Checking for tinfo before ncurses might work on some machines. But does it work everywhere? Or do we need to add checks for what the library needs to contain? -- Q: Why does /dev/null accept only integers? A: You can't sink a float. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
