1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

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

This commit is contained in:
Guenter Knauf 2014-11-19 11:38:37 +01:00
parent fba9f41b84
commit a08decdfed
2 changed files with 14 additions and 4 deletions

View File

@ -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

View File

@ -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