[PATCH 0/2] Patch for warnings when using link flags as compile flags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux