Fix build without cross compilation
Subsystems (2)
This patch fixes build on "normal" Linux hosts without cross compiler. The regression was introduced with
commit 6f95d707544ab3417673990e6a78b27b79737856
Author: Jamey Sharp <[email protected]>
Date: Thu May 15 17:03:09 2008 -0700
Use target CC and LD to build kdump and kexec_test.
--- configure.ac | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-)
configure.ac +7 -0
@@ -84,21 +84,22 @@ else BUILD_CC="$CC" fi +dnl Find the compiler tool chain +AC_PROG_CPP +AC_CHECK_TOOL([LD], ld, "no", $PATH) +AC_CHECK_TOOL([AS], as, "no", $PATH) +AC_CHECK_TOOL([OBJCOPY], objcopy, "no", $PATH) +AC_CHECK_TOOL([AR], ar, "", $PATH) + dnl Find compiler for target if test "${target}" != "${host}" ; then AC_CHECK_PROGS(TARGET_CC, [${target_alias}-gcc ${target}-gcc
gcc]) AC_CHECK_PROGS(TARGET_LD, [${target_alias}-ld ${target}-ld ld])
else
TARGET_CC="$CC"
+ TARGET_LD="$LD"
fi
-dnl Find the compiler tool chain
-AC_PROG_CPP
-AC_CHECK_TOOL([LD], ld, "no", $PATH)
-AC_CHECK_TOOL([AS], as, "no", $PATH)
-AC_CHECK_TOOL([OBJCOPY], objcopy, "no", $PATH)
-AC_CHECK_TOOL([AR], ar, "", $PATH)
-
dnl Find the helper functions
AC_PROG_INSTALL
AC_CHECK_PROG([MKDIR], mkdir, mkdir, "no", [$PATH])
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Quoted 7 lines · Bernhard Walle
This patch fixes build on "normal" Linux hosts without cross compiler. The regression was introduced with
commit
6f95d707544ab3417673990e6a78b27b79737856
Author: Jamey Sharp <[email protected]>
Date: Thu May 15 17:03:09 2008 -0700
Quoted 7 lines
Use target CC and LD to build kdump and
kexec_test.Signed-off-by Jamey Sharp <[email protected]>Signed-off-by Simon Horman <[email protected]>Signed-off-by Bernhard Walle <[email protected]>
Hi Bernhard,
I have to confess that I am not seeing this problem. However the change looks sensible so I have gone ahead and applied it anyway.
Signature · 7 lines
Horms _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec