2008-07-02 Pavel Roskin <proski@gnu.org>

* Makefile.in (MODULE_LDFLAGS): New variable.
	* aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro.  Check if
	the linker accepts --build-id=none.
	* configure.ac: Call grub_PROG_LD_BUILD_ID_NONE.  Substitute
	MODULE_LDFLAGS.
	* genmk.rb: Use MODULE_LDFLAGS when linking modules.
This commit is contained in:
proski 2008-07-02 19:03:23 +00:00
parent d4c9b428e1
commit cb71ba20e9
13 changed files with 245 additions and 151 deletions

View file

@ -253,6 +253,7 @@ fi
AC_SUBST(TARGET_CFLAGS)
AC_SUBST(TARGET_CPPFLAGS)
AC_SUBST(TARGET_LDFLAGS)
AC_SUBST(MODULE_LDFLAGS)
# Set them to their new values for the tests below.
CC="$TARGET_CC"
@ -262,6 +263,7 @@ LDFLAGS="$TARGET_LDFLAGS"
# Defined in aclocal.m4.
grub_PROG_OBJCOPY_ABSOLUTE
grub_PROG_LD_BUILD_ID_NONE
grub_ASM_USCORE
if test "x$target_cpu" = xi386; then
grub_CHECK_START_SYMBOL