Issue libreadline

I have an issue while compiling certain programs. I have the package "libreadline" installed but I keep getting errors like : fatal error: readline/readline.h: No such file or directory
that are caused by #include <readline/readline.h>
with debian, we can use libreadline-dev, but I don't see such package in OpenWrt. Someone has an idea how to solve this problem?

Not really supposed to compile Openwrt on Openwrt, even though it works.

Install debian in docker podman lxc and compile everything you want.