summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/makefile b/makefile
index 5d6180f2693..91ba31f1372 100644
--- a/makefile
+++ b/makefile
@@ -139,8 +139,9 @@ ifeq ($(TARGETOS),win32)
# Autodetect PTR64
ifndef PTR64
-ifneq (,$(findstring mingw64-w64,$(PATH)))
-PTR64=1
+WIN_TEST_GCC := $(shell gcc --version)
+ifeq ($(findstring x86_64,$(WIN_TEST_GCC)),x86_64)
+ PTR64=1
endif
endif