diff options
author | Miklós Márton <martonmiklosqdev@gmail.com> | 2018-01-30 20:25:00 +0100 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2018-06-23 19:41:49 +0000 |
commit | a75a2edc05a006c10caa24ccbee12c2b3ddaee66 (patch) | |
tree | 9c1019723c739f5a3e1019bbcb6be88f9d2ff71c /Makefile | |
parent | 0b59b0dafc219ba73ee2af5404ce626575d74c6f (diff) | |
download | flashrom-a75a2edc05a006c10caa24ccbee12c2b3ddaee66.tar.gz flashrom-a75a2edc05a006c10caa24ccbee12c2b3ddaee66.tar.bz2 flashrom-a75a2edc05a006c10caa24ccbee12c2b3ddaee66.zip |
Fix mingw detection on Windows 7 (NT-6.1)
Hopefully also for other non-XP Windows build environments.
Change-Id: I7f856dc4847c4ca9197b1935b7a9b9071b46c70a
Signed-off-by: Miklós Márton <martonmiklosqdev@gmail.com>
Reviewed-on: https://review.coreboot.org/23865
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -93,10 +93,11 @@ debug_shell = $(shell export LC_ALL=C ; { echo 'exec: export LC_ALL=C ; { $(1) ; # HOST_OS is only used to work around local toolchain issues. HOST_OS ?= $(shell uname) -ifeq ($(HOST_OS), MINGW32_NT-5.1) +ifeq ($(findstring MINGW, $(HOST_OS)), MINGW) # Explicitly set CC = gcc on MinGW, otherwise: "cc: command not found". CC = gcc endif + ifneq ($(HOST_OS), SunOS) STRIP_ARGS = -s endif |