From 0f3750c2f9da54d7bd40e420511ade507ca0e1d3 Mon Sep 17 00:00:00 2001 From: Seth Forshee Date: Mon, 26 Feb 2018 15:32:55 -0600 Subject: [PATCH] UBUNTU: SAUCE: tools: use CC for linking acpi tools Prior to 7ed1c1901fe5 ("tools: fix cross-compile var clobbering") the acpi tools makefiles were using gcc for linking. That commit causes ld to be used instead, however this doesn't work as the flags supplied are meant for gcc and not ld. Change the acpi tools rules to use $(QUIET_LINK)$(CC) for linking to fix this regression. Fixes: 7ed1c1901fe5 ("tools: fix cross-compile var clobbering") Signed-off-by: Seth Forshee --- tools/power/acpi/Makefile.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/power/acpi/Makefile.rules b/tools/power/acpi/Makefile.rules index b71aada77688..378543e4a71b 100644 --- a/tools/power/acpi/Makefile.rules +++ b/tools/power/acpi/Makefile.rules @@ -9,7 +9,7 @@ objdir := $(OUTPUT)tools/$(TOOL)/ toolobjs := $(addprefix $(objdir),$(TOOL_OBJS)) $(OUTPUT)$(TOOL): $(toolobjs) FORCE $(ECHO) " LD " $(subst $(OUTPUT),,$@) - $(QUIET) $(LD) $(CFLAGS) $(toolobjs) $(LDFLAGS) -L$(OUTPUT) -o $@ + $(QUIET_LINK)$(CC) $(CFLAGS) $(toolobjs) $(LDFLAGS) -L$(OUTPUT) -o $@ $(ECHO) " STRIP " $(subst $(OUTPUT),,$@) $(QUIET) $(STRIPCMD) $@