]> git.baikalelectronics.ru Git - kernel.git/commit
tools: power/acpi, revert to LD = gcc
authorJiri Slaby <jslaby@suse.cz>
Tue, 24 Apr 2018 07:43:44 +0000 (09:43 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 4 May 2018 09:24:22 +0000 (11:24 +0200)
commit7d03d7697d8ead2c925e50da60dd3a574add84c5
treef16fa6dc1f1953ae897f68320fc6e5b4720e60a0
parent92b39948b4c6667a1235cb96f58e80dbb4ee6b42
tools: power/acpi, revert to LD = gcc

Commit 6e77a588b1c7 (tools: fix cross-compile var clobbering) removed
setting of LD to $(CROSS_COMPILE)gcc. This broke build of acpica
(acpidump) in power/acpi:
 ld: unrecognized option '-D_LINUX'

The tools pass CFLAGS to the linker (incl. -D_LINUX), so revert this
particular change and let LD be $(CC) again. Note that the old behaviour
was a bit different, it used $(CROSS_COMPILE)gcc which was eliminated by
the commit 6e77a588b1c7. We use $(CC) for that reason.

Fixes: 6e77a588b1c7 (tools: fix cross-compile var clobbering)
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: 4.16+ <stable@vger.kernel.org> # 4.16+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/power/acpi/Makefile.config