alessandro salvatori wrote: > Hello! > I would like to build a statically linked vim binary, with as many > features as possible. Apparently some features in "normal" that are > not in "small" make it hard, if yet feasible, to statically link vim. > I would be happy if can get most things in "normal" and yet link > statically. Is there anything that i can undef from feature.h and get > away with that? > > thank you!
- I wonder why you would want to link statically. That would typically lead to unnecessary duplication of code with other programs running on the same machine with the same libraries. It would also require recompilation for every bug found in the libraries, while with dynamic builds, you would install an upgraded version of the same library, and not have to change the Vim executable, except if the library itself became incompatible with its former version (which happens only relatively rarely). - Maybe a "small" build is what you're after? - Get a processor with more addressing space, a motherboard with more memory, and/or a hard disk with more virtual memory. Then you'll be able to link a bigger static build. - Your Mileage May Vary: The features you might want to leave out are not necessarily those I'd prefer to leave out, if I were linking statically for a small computer. (But I prefer to link dynamically anyway, and include as many features as I can afford.) So, in short: you're on your own. Study feature.h _and_ your Makefile(s), try, err, correct your errors, and try again. - On some platforms, some features can _only_ be linked dynamically. If you want a static link, you'll have to exclude them. Check the Makefile. Best regards, Tony. -- A lack of leadership is no substitute for inaction. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
