Nikita Karetnikov <nik...@karetnikov.org> skribis: >> I'll try to build statically-linked Bash. > > Could anyone advise on this? Which flags and options should be used? > > The ones from the corresponding recipe look a bit complex for me. I > tried this instead: > > # ./configure --enable-readline --enable-static-link > # make
[...] > /nix/store/zcfiac107h1nji9sdiv2m1dzpvvagrh5-glibc-2.13/lib/../lib/libc.a(malloc.o): > In function `__libc_free': > (.text+0x6380): multiple definition of `free' You also need ‘--without-bash-malloc’ (see ‘bash-light’ in bash.scm). HTH, Ludo’.