From 615688f3b98e3e04a31c91b185d78b2022e5cc5a Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Fri, 15 Dec 2017 23:20:55 +0100 Subject: [PATCH] - acinclude: fix TARGET_PREFIX define for native target Signed-off-by: Thilo Graf Note: TARGET_PREFIX describes inside the yocto SDK the toolchain binary prefix for the target tools. Maybe this could make confuse with usage of yocto SDK environment. Maybe we should rename this variable. e.g EXEC_PREFIX or so ... --- acinclude.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/acinclude.m4 b/acinclude.m4 index d0daddef7..9db7454bf 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -50,11 +50,12 @@ if test "$TARGET" = "native"; then if test "$prefix" = "NONE"; then prefix=/usr/local fi - TARGET_PREFIX=$prefix if test "$exec_prefix" = "NONE"; then exec_prefix=$prefix fi targetprefix=$prefix + TARGET_PREFIX=$prefix + AC_DEFINE_UNQUOTED(TARGET_PREFIX, "$TARGET_PREFIX", [The targets prefix]) elif test "$TARGET" = "cdk"; then AC_MSG_RESULT(cdk)