mirror of
https://github.com/curl/curl.git
synced 2026-08-25 09:33:36 +03:00
makefile.m32: add support for custom ARCH [ci skip]
When building curl for target platform other than x64 and x86, it is now possible to pass `ARCH=custom`, that will omit all hardcoded logic for setting up CFLAGS/LDFLAGS/RCFLAGS for these platforms, and let these be customized via `CURL_CFLAG_EXTRAS`, `CURL_LDFLAG_EXTRAS`, and a newly added one for the resource compiler: `CURL_RCFLAG_EXTRAS`. This makes it possible to use `makefile.m32` to build for ARM64 for example. Reviewed-by: Daniel Stenberg Closes #9092
This commit is contained in:
parent
8ba22ffb20
commit
8ef0f35a04
3 changed files with 9 additions and 3 deletions
|
|
@ -119,7 +119,7 @@ CFLAGS = -O3 $(CURL_CFLAG_EXTRAS) -W -Wall
|
|||
LDFLAGS = $(CURL_LDFLAG_EXTRAS) $(CURL_LDFLAG_EXTRAS_EXE)
|
||||
AR = $(CURL_AR)
|
||||
RC = $(CROSSPREFIX)windres
|
||||
RCFLAGS = --include-dir=$(PROOT)/include -O coff -DCURL_EMBED_MANIFEST
|
||||
RCFLAGS = --include-dir=$(PROOT)/include -O coff -DCURL_EMBED_MANIFEST $(CURL_RCFLAG_EXTRAS)
|
||||
STRIP = $(CROSSPREFIX)strip -g
|
||||
|
||||
# We may need these someday
|
||||
|
|
@ -135,6 +135,7 @@ ARCH = w32
|
|||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(ARCH),custom)
|
||||
ifeq ($(ARCH),w64)
|
||||
CFLAGS += -m64
|
||||
LDFLAGS += -m64
|
||||
|
|
@ -144,6 +145,7 @@ CFLAGS += -m32
|
|||
LDFLAGS += -m32
|
||||
RCFLAGS += -F pe-i386
|
||||
endif
|
||||
endif
|
||||
|
||||
# Platform-dependent helper tool macros
|
||||
ifeq ($(findstring /sh,$(SHELL)),/sh)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue