aboutsummaryrefslogtreecommitdiff
path: root/lib/Makefile.m32
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Makefile.m32')
-rw-r--r--lib/Makefile.m329
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/Makefile.m32 b/lib/Makefile.m32
index d0ac77b10..2b23a40ee 100644
--- a/lib/Makefile.m32
+++ b/lib/Makefile.m32
@@ -54,9 +54,14 @@ ifndef LIBCARES_PATH
LIBCARES_PATH = $(PROOT)/ares
endif
-# Edit the var below to set to your architecture or set environment var.
+# Set environment var ARCH to your architecture to override autodetection.
ifndef ARCH
-ARCH = w32
+TARGET := $(shell $(CC) -dumpmachine)
+ifeq ($(findstring x86_64,$(TARGET)),x86_64)
+ARCH = w64
+else
+ARCH = w32
+endif
endif
CC = $(CROSSPREFIX)gcc