As I recently learned, it's possible to dynamically load custom builtins into Bash (see enable in the manual, and this answer). However I'm not sure how to take advantage of this feature.
The linked question points to https://mywiki.wooledge.org/BashLoadableBuiltins which provides some compilation instructions, but I'm not able to reproduce them (in Bash 5.0):
$ git clone https://git.savannah.gnu.org/git/bash.git
$ cd bash/
$ ./configure
$ make
$ exec ./bash
$ cd examples/loadables/
$ make
$ enable -f finfo finfo
bash: enable: cannot open shared object finfo: finfo: cannot open shared object file: No such file or directory
(Here's the full output just in case it's helpful)
Running make in the examples/loadables appears to be creating .o files, while (I think?) enable is looking for a .so file. Is there a step I've missed that would generate the appropriate artifacts? Is there an easier or more typical way to build custom builtins?