This trivial patch makes it possible to pass additional LDADD flags to aicasm Makefile:
It is necessary at least on ubuntuBSD with current toolchain, and could be necessary on Debian GNU/kFreeBSD in the future. The reason is that when building the FreeBSD kernel on those systems flags -lbsd -ldb are also needed.
Same problem also happens with a few other utility binaries. Could you allow additional flags there too?
I've prepared a new patch for head branch which now uses LIBADD. Or you can use the shell script if you prefer :-)
Created attachment 172085 [details]
allow additional flags in LIBADD
Created attachment 172086 [details]
shell script version