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:
parent
fba9f41b84
commit
a08decdfed
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user