mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-03 20:55:36 +00:00
Allow overriding ar param prefix in library/Makefile
This commit is contained in:
parent
873f15d70d
commit
ceed91b72c
|
@ -38,6 +38,10 @@ SOEXT_CRYPTO=so.1
|
||||||
# Set DLEXT=dylib to compile as a shared library for Mac OS X
|
# Set DLEXT=dylib to compile as a shared library for Mac OS X
|
||||||
DLEXT ?= so
|
DLEXT ?= so
|
||||||
|
|
||||||
|
# Set AR_DASH= (empty string) to use an ar implentation that does not accept
|
||||||
|
# the - prefix for command line options (e.g. llvm-ar)
|
||||||
|
AR_DASH ?= -
|
||||||
|
|
||||||
# Windows shared library extension:
|
# Windows shared library extension:
|
||||||
ifdef WINDOWS_BUILD
|
ifdef WINDOWS_BUILD
|
||||||
DLEXT=dll
|
DLEXT=dll
|
||||||
|
@ -90,9 +94,9 @@ shared: libmbedcrypto.$(DLEXT) libmbedx509.$(DLEXT) libmbedtls.$(DLEXT)
|
||||||
# tls
|
# tls
|
||||||
libmbedtls.a: $(OBJS_TLS)
|
libmbedtls.a: $(OBJS_TLS)
|
||||||
echo " AR $@"
|
echo " AR $@"
|
||||||
$(AR) -rc $@ $(OBJS_TLS)
|
$(AR) $(AR_DASH)rc $@ $(OBJS_TLS)
|
||||||
echo " RL $@"
|
echo " RL $@"
|
||||||
$(AR) -s $@
|
$(AR) $(AR_DASH)s $@
|
||||||
|
|
||||||
libmbedtls.$(SOEXT_TLS): $(OBJS_TLS) libmbedx509.so
|
libmbedtls.$(SOEXT_TLS): $(OBJS_TLS) libmbedx509.so
|
||||||
echo " LD $@"
|
echo " LD $@"
|
||||||
|
@ -113,9 +117,9 @@ libmbedtls.dll: $(OBJS_TLS) libmbedx509.dll
|
||||||
# x509
|
# x509
|
||||||
libmbedx509.a: $(OBJS_X509)
|
libmbedx509.a: $(OBJS_X509)
|
||||||
echo " AR $@"
|
echo " AR $@"
|
||||||
$(AR) -rc $@ $(OBJS_X509)
|
$(AR) $(AR_DASH)rc $@ $(OBJS_X509)
|
||||||
echo " RL $@"
|
echo " RL $@"
|
||||||
$(AR) -s $@
|
$(AR) $(AR_DASH)s $@
|
||||||
|
|
||||||
libmbedx509.$(SOEXT_X509): $(OBJS_X509) libmbedcrypto.so
|
libmbedx509.$(SOEXT_X509): $(OBJS_X509) libmbedcrypto.so
|
||||||
echo " LD $@"
|
echo " LD $@"
|
||||||
|
@ -136,9 +140,9 @@ libmbedx509.dll: $(OBJS_X509) libmbedcrypto.dll
|
||||||
# crypto
|
# crypto
|
||||||
libmbedcrypto.a: $(OBJS_CRYPTO)
|
libmbedcrypto.a: $(OBJS_CRYPTO)
|
||||||
echo " AR $@"
|
echo " AR $@"
|
||||||
$(AR) -rc $@ $(OBJS_CRYPTO)
|
$(AR) $(AR_DASH)rc $@ $(OBJS_CRYPTO)
|
||||||
echo " RL $@"
|
echo " RL $@"
|
||||||
$(AR) -s $@
|
$(AR) $(AR_DASH)s $@
|
||||||
|
|
||||||
libmbedcrypto.$(SOEXT_CRYPTO): $(OBJS_CRYPTO)
|
libmbedcrypto.$(SOEXT_CRYPTO): $(OBJS_CRYPTO)
|
||||||
echo " LD $@"
|
echo " LD $@"
|
||||||
|
|
Loading…
Reference in a new issue