diff options
author | Guenter Knauf <lists@gknw.net> | 2014-11-19 11:38:37 +0100 |
---|---|---|
committer | Guenter Knauf <lists@gknw.net> | 2014-11-19 11:40:04 +0100 |
commit | a08decdfed2e83001c47b1eb771b79756d2bab4c (patch) | |
tree | 829c0b4b1916c2cdb5384c95579ca175af02f027 /src/Makefile.m32 | |
parent | fba9f41b84cc591f124cef7d796321cfa000fc8c (diff) | |
download | curl-a08decdfed2e83001c47b1eb771b79756d2bab4c.tar.gz |
build: in Makefile.m32 try to detect 64bit target.
Diffstat (limited to 'src/Makefile.m32')
-rw-r--r-- | src/Makefile.m32 | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Makefile.m32 b/src/Makefile.m32 index ac1c0b835..5cacade57 100644 --- a/src/Makefile.m32 +++ b/src/Makefile.m32 @@ -66,9 +66,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 |