trying to reproduce and solve https://stackoverflow.com/questions/70584133/when-using-libadd-in-automake-libtool-links-incorrectly