Matthew Woehlke wrote:
> Бојан Ландекић wrote:
> >Is it possible to put bash on some portable media and use it on a
> >system that is bash-less without worrying about dependencies?
> 
> Not unless you build it statically, it isn't. :-) Although I think if 
> you build bash it gives you all the libraries you need except for libc 
> (or your OS's equivalent). IOW if you have an entire bash install on 
> your 'portable media', you should be able to run that bash on any system 
> the same as, or newer than, your build system.

Actually as long as you include all of the libraries in the same
bundle and call ldso with the path to the bundled libc then it is
perfectly possible to build a complete set that will work on most
distros, on the same architecture and across compatible kernel
versions of course.  On my system that would be libncurses.so.5,
libdl.so.2, libc.so.6, ld-linux-x86-64.so.2 plus bash itself and a
portable sh script wrapper to tie it all together.  I do that with
other tools frequently.

Bob


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to