mirror of
https://github.com/curl/curl.git
synced 2026-05-17 22:26:20 +03:00
build: in Makefile.m32 simplified autodetection.
This commit is contained in:
parent
cf6c5c222d
commit
228f1ee9f2
2 changed files with 2 additions and 4 deletions
|
|
@ -67,8 +67,7 @@ STRIP = $(CROSSPREFIX)strip -g
|
|||
|
||||
# Set environment var ARCH to your architecture to override autodetection.
|
||||
ifndef ARCH
|
||||
TARGET := $(shell $(CC) -dumpmachine)
|
||||
ifeq ($(findstring x86_64,$(TARGET)),x86_64)
|
||||
ifeq ($(findstring x86_64,$(shell $(CC) -dumpmachine)),x86_64)
|
||||
ARCH = w64
|
||||
else
|
||||
ARCH = w32
|
||||
|
|
|
|||
|
|
@ -82,8 +82,7 @@ STRIP = $(CROSSPREFIX)strip -g
|
|||
|
||||
# Set environment var ARCH to your architecture to override autodetection.
|
||||
ifndef ARCH
|
||||
TARGET := $(shell $(CC) -dumpmachine)
|
||||
ifeq ($(findstring x86_64,$(TARGET)),x86_64)
|
||||
ifeq ($(findstring x86_64,$(shell $(CC) -dumpmachine)),x86_64)
|
||||
ARCH = w64
|
||||
else
|
||||
ARCH = w32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue