Skip to contentSkip to conversation

Fix build without cross compilation

PATCH Bernhard Walle 2 participants 2 messages May 25, 2008 – May 28, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index beb8b3e..36436ba 100644
@@ -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

#1 lore raw
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.

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