When building the package using an ARM cross compiler (gcc 4.2.2 for ARM) I was getting a lot of warnings from the compiler repetitively. They were, "--as-needed: linker input file unused because linking not done" and "--gc-sections: linker input file unused because linking not done" These were coming out because the were passed to libtool as flags when doing both "compile" mode and "link" mode. But the flags only make since when we are doing linking. I created the following patches to fix the warnings, because although the warnings aren't actually causing a problem, they make it harder to see actual warnings or turn on Werror. Randy Witt (2): Add CC_CHECK_LDFLAGS_APPEND m4 macro. configure.ac: Move link only flags out of CFLAGS and into LDFLAGS. configure.ac | 8 +++++--- m4/attributes.m4 | 41 ++++++++++++++++++++++++++++++++++++----- 2 files changed, 41 insertions(+), 8 deletions(-) -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-modules" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html