diff --git a/lib/Makefile.m32 b/lib/Makefile.m32 index de44c66ea1a42a08c4bc2d6c3e32fff1e4966b4b..f6ef0a30f6d4def654be3e3a50d4bd49793fc17a 100644 --- a/lib/Makefile.m32 +++ b/lib/Makefile.m32 @@ -67,8 +67,7 @@ STRIP = $(CROSSPREFIX)strip -g # Set environment var ARCH to your architecture to override autodetection. ifndef ARCH -TARGET := $(shell $(CC) -dumpmachine) -ifeq ($(findstring x86_64,$(TARGET)),x86_64) +ifeq ($(findstring x86_64,$(shell $(CC) -dumpmachine)),x86_64) ARCH = w64 else ARCH = w32 diff --git a/src/Makefile.m32 b/src/Makefile.m32 index 4f1c99bdd04209f9e2f14cdbaa39a5c922dc3a31..22269298cf5b9f12ec14e39f293368916c91e494 100644 --- a/src/Makefile.m32 +++ b/src/Makefile.m32 @@ -82,8 +82,7 @@ STRIP = $(CROSSPREFIX)strip -g # Set environment var ARCH to your architecture to override autodetection. ifndef ARCH -TARGET := $(shell $(CC) -dumpmachine) -ifeq ($(findstring x86_64,$(TARGET)),x86_64) +ifeq ($(findstring x86_64,$(shell $(CC) -dumpmachine)),x86_64) ARCH = w64 else ARCH = w32