Using LDFLAGS='-Wl,--as-needed' with the GNU binutils linker results in linker failure due to references to inline functions which were declared but never defined.