bash: Set bash_cv_getcwd_malloc=yes when cross compiling
Because if you don't, the configure script assumes that your getcwd() function is broken. Which then makes bash use it's own getcwd() implementation, which doesn't work if the path to the current directory contains bind mounts in its paths. This shows up as: shell-init: error retrieving current directory: getcwd: cannot access parent directories: Bad file descriptor ... and fails the aarch64 glibc build with sandboxes enabled. Sigh.
parent
40c1406b
Please register or sign in to comment