Skip to content
Snippets Groups Projects
Commit a08decdf authored by Guenter Knauf's avatar Guenter Knauf
Browse files

build: in Makefile.m32 try to detect 64bit target.

parent fba9f41b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment