Commit a08decdf authored by Guenter Knauf's avatar Guenter Knauf
Browse files

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

parent fba9f41b
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -54,10 +54,15 @@ 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
TARGET	:= $(shell $(CC) -dumpmachine)
ifeq ($(findstring x86_64,$(TARGET)),x86_64)
ARCH	= w64
else
ARCH	= w32
endif
endif

CC	= $(CROSSPREFIX)gcc
CFLAGS	= -g -O2 -Wall
+7 −2
Original line number Diff line number Diff line
@@ -66,10 +66,15 @@ 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
TARGET  := $(shell $(CC) -dumpmachine)
ifeq ($(findstring x86_64,$(TARGET)),x86_64)
ARCH    = w64
else
ARCH    = w32
endif
endif

CC	= $(CROSSPREFIX)gcc
CFLAGS	= -g -O2 -Wall