build: in Makefile.m32 try to detect 64bit target.
This commit is contained in:
parent
fba9f41b84
commit
a08decdfed
@ -54,10 +54,15 @@ ifndef LIBCARES_PATH
|
|||||||
LIBCARES_PATH = $(PROOT)/ares
|
LIBCARES_PATH = $(PROOT)/ares
|
||||||
endif
|
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
|
ifndef ARCH
|
||||||
|
TARGET := $(shell $(CC) -dumpmachine)
|
||||||
|
ifeq ($(findstring x86_64,$(TARGET)),x86_64)
|
||||||
|
ARCH = w64
|
||||||
|
else
|
||||||
ARCH = w32
|
ARCH = w32
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
CC = $(CROSSPREFIX)gcc
|
CC = $(CROSSPREFIX)gcc
|
||||||
CFLAGS = -g -O2 -Wall
|
CFLAGS = -g -O2 -Wall
|
||||||
|
@ -66,10 +66,15 @@ ifndef LIBCARES_PATH
|
|||||||
LIBCARES_PATH = $(PROOT)/ares
|
LIBCARES_PATH = $(PROOT)/ares
|
||||||
endif
|
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
|
ifndef ARCH
|
||||||
|
TARGET := $(shell $(CC) -dumpmachine)
|
||||||
|
ifeq ($(findstring x86_64,$(TARGET)),x86_64)
|
||||||
|
ARCH = w64
|
||||||
|
else
|
||||||
ARCH = w32
|
ARCH = w32
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
CC = $(CROSSPREFIX)gcc
|
CC = $(CROSSPREFIX)gcc
|
||||||
CFLAGS = -g -O2 -Wall
|
CFLAGS = -g -O2 -Wall
|
||||||
|
Loading…
x
Reference in New Issue
Block a user