mirror of
https://github.com/curl/curl.git
synced 2026-08-24 21:33:31 +03:00
Makefile.m32: add CURL_RC and CURL_STRIP variables [ci skip]
They allow to override the hardcoded values for the `windres` and `strip`
tools, complementing the existing set of `CURL_{CC,AR,RANLIB}` variables.
`CURL_RC` comes handy when using LLVM tools with `CROSSPREFIX=llvm-` and
`CURL_CC=clang` set on current latest debian:unstable or earlier, where
`llvm-windres` is missing, and a `CURL_RC=<triplet>-windres` fixes it.
Hopefully this will be fixed in the llvm package. FWIW `llvm-windres`
does exist in Homebrew llvm, MSYS2 llvm and llvm-mingw.
Reviewed-by: Daniel Stenberg
Closes #9132
This commit is contained in:
parent
4989cd099e
commit
1d5b7b7009
3 changed files with 20 additions and 5 deletions
|
|
@ -113,11 +113,14 @@ endif
|
|||
ifeq ($(CURL_AR),)
|
||||
CURL_AR := $(CROSSPREFIX)ar
|
||||
endif
|
||||
ifeq ($(CURL_RC),)
|
||||
CURL_RC := $(CROSSPREFIX)windres
|
||||
endif
|
||||
|
||||
CC = $(CURL_CC)
|
||||
CFLAGS = -O3 $(CURL_CFLAG_EXTRAS) -W -Wall
|
||||
LDFLAGS = $(CURL_LDFLAG_EXTRAS) $(CURL_LDFLAG_EXTRAS_EXE)
|
||||
RC = $(CROSSPREFIX)windres
|
||||
RC = $(CURL_RC)
|
||||
RCFLAGS = --include-dir=$(PROOT)/include -O coff $(CURL_RCFLAG_EXTRAS)
|
||||
|
||||
# Set environment var ARCH to your architecture to override autodetection.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue