Hi,
when compiling with --binary-indep:
debian/rules build-indep
dh build-indep
dh_update_autotools_config -i
dh_autoreconf -i
dh_auto_configure -i
debian/rules override_dh_auto_build
make[1]: Entering directory '/build/luajit-2.1.0+openresty20250117'
/usr/bin/make amalg PREFIX=/usr \
MULTILIB=lib/riscv64-linux-gnu \
CROSS=riscv64-linux-gnu- \
Q= E=@:
make[2]: Entering directory '/build/luajit-2.1.0+openresty20250117'
==== Building LuaJIT 2.1 (amalgamation) ====
/usr/bin/make -C src amalg
make[3]: Entering directory '/build/luajit-2.1.0+openresty20250117/src'
/usr/bin/make all "LJCORE_O=ljamalg.o lj_str_hash.o"
make[4]: Entering directory '/build/luajit-2.1.0+openresty20250117/src'
riscv64-linux-gnu-gcc -fPIC -g -O2 -fomit-frame-pointer -Wall -g -O2 -ffile-prefix-map=/build/luajit-2.1.0+openresty20250117=. -fstack-protector-strong -Wformat -Werror=format-security -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -U_FORTIFY_SOURCE -DLUA_ROOT=\"/usr\" -DLUA_MULTILIB=\"lib/riscv64-linux-gnu\" -DLUA_LJDIR=\"/usr/share/luajit-2.1\" -fno-stack-protector -c -o lj_init_dyn.o lj_init.c
...
That build can probably be avoided.
Simon