Commit aba0c7ae authored by Ying-Chun Liu (PaulLiu)'s avatar Ying-Chun Liu (PaulLiu)
Browse files

tools/cert_create: fix makefile to build build_msg.o by HOSTCC



Previously build_msg.o is built by CC. It causes FTBFS when CC
is not equal to HOSTCC.
Signed-off-by: default avatarYing-Chun Liu (PaulLiu) <paulliu@debian.org>
parent 0a15eb9c
......@@ -75,7 +75,7 @@ ${BINARY}: ${OBJECTS} Makefile
@echo " LD $@"
@echo 'const char build_msg[] = "Built : "__TIME__", "__DATE__; \
const char platform_msg[] = "${PLAT_MSG}";' | \
${CC} -c ${CFLAGS} -xc - -o src/build_msg.o
${HOSTCC} -c ${CFLAGS} -xc - -o src/build_msg.o
${Q}${HOSTCC} src/build_msg.o ${OBJECTS} ${LIB_DIR} ${LIB} -o $@
%.o: %.c
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment