Re: [PATCH execline] Fix CC variable in cross compile environment

2019-10-20 Thread Laurent Bercot




Makefile uses CC instead of $(CROSS_COMPILE)$(CC),
So CC shouldn't strip cross prefix when configure.


That sounds right, but ISTR testing it when I made the change and
it worked when cross-compiling. There must have been something else
going on; I will test tomorrow and possibly apply. Thanks!

--
Laurent



[PATCH execline] Fix CC variable in cross compile environment

2019-10-20 Thread Shengjing Zhu
This patch fixes execline, but other softwares like s6 should
be fixed as well.

With commit fc7958ecb1c4d5b06521e1ca42f0b48b514e27e1,
Makefile uses CC instead of $(CROSS_COMPILE)$(CC),
So CC shouldn't strip cross prefix when configure.
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index ce3939d..bcac9f3 100755
--- a/configure
+++ b/configure
@@ -418,7 +418,7 @@ SYSCLOCK_LIB := ${sysclock_lib}
 TIMER_LIB := ${timer_lib}
 UTIL_LIB := ${util_lib}
 
-CC := ${CC_AUTO##${cross}}
+CC := ${CC_AUTO}
 CPPFLAGS_AUTO := $CPPFLAGS_AUTO
 CPPFLAGS := $CPPFLAGS $CPPFLAGS_POST
 CFLAGS_AUTO := $CFLAGS_AUTO
-- 
2.23.0



signature.asc
Description: PGP signature