* configure.ac: Test if '--build-id=none' is supported by the
linker. If yes, add it to TARGET_LDFLAGS. Build ID causes objcopy to generate incorrect binary files (binutils 2.17.50.0.18-1 as shipped by Fedora 8). * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when linking, so that build ID doesn't break the test.
This commit is contained in:
parent
f7f9d35210
commit
6af9db01bc
4 changed files with 75 additions and 2 deletions
2
aclocal.m4
vendored
2
aclocal.m4
vendored
|
@ -57,7 +57,7 @@ else
|
|||
fi
|
||||
grub_cv_prog_objcopy_absolute=yes
|
||||
for link_addr in 2000 8000 7C00; do
|
||||
if AC_TRY_COMMAND([${CC-cc} ${CFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec]); then :
|
||||
if AC_TRY_COMMAND([${CC-cc} ${CFLAGS} ${LDFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec]); then :
|
||||
else
|
||||
AC_MSG_ERROR([${CC-cc} cannot link at address $link_addr])
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue