mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-27 04:54:15 +01:00
Serialise builds of the .a files on Windows
This is a workaround for an issue with mkstemp() in older MinGW releases that causes simultaneous creation of .a files in the same directory to fail. Fixes #5146 Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
parent
95c3971c81
commit
8517d17329
@ -189,6 +189,14 @@ static: libmbedcrypto.a libmbedx509.a libmbedtls.a
|
||||
|
||||
shared: libmbedcrypto.$(DLEXT) libmbedx509.$(DLEXT) libmbedtls.$(DLEXT)
|
||||
|
||||
# Windows builds under Mingw can fail if make tries to create archives in the same
|
||||
# directory at the same time - see https://bugs.launchpad.net/gcc-arm-embedded/+bug/1848002.
|
||||
# This forces builds of the .a files to be serialised.
|
||||
ifdef WINDOWS
|
||||
libmbedtls.a: | libmbedx509.a
|
||||
libmbedx509.a: | libmbedcrypto.a
|
||||
endif
|
||||
|
||||
# tls
|
||||
libmbedtls.a: $(OBJS_TLS)
|
||||
echo " AR $@"
|
||||
|
Loading…
Reference in New Issue
Block a user