Hello,
I've tried to build a static version of Bash 4.3.30 using these commands:

export CFLAGS="-static -O2 -g"
export PATH="/usr/bin:$PATH"
./configure --without-bash-malloc
make

and got this error:

./lib/sh/libsh.a(shmatch.o): In function `sh_regmatch':
/home/serge/Downloads/bash-4.3.30/lib/sh/shmatch.c:111: undefined
reference to `sh_xfree'
/home/serge/Downloads/bash-4.3.30/lib/sh/shmatch.c:112: undefined
reference to `sh_xfree'
collect2: error: ld returned 1 exit status
make: *** [bash] Error 1

Not sure, may be I overlooked something.
Can it be some bug or missing dependency in the Bash source code?

Regards,
Sergey.

Reply via email to