From 1058ed5b2525f322d1f36b3a37481ba40de8825c Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sat, 31 Oct 2020 18:52:19 +0100 Subject: tomcrypt: Set target macOS version. Make sure the target version isn't the default one so it also runs on older macOS version than the current one. Change-Id: Ib3517c97eee23ce1648e644ffc9daba2d1e7b599 --- utils/tomcrypt/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/tomcrypt/Makefile b/utils/tomcrypt/Makefile index 3382819a66..f0d874c1ae 100644 --- a/utils/tomcrypt/Makefile +++ b/utils/tomcrypt/Makefile @@ -25,13 +25,18 @@ endif CFLAGS := -O3 -g -std=c99 -Wall $(DEFINES) -Isrc/headers LDFLAGS := +CPPDEFINES := $(shell echo foo | $(CROSS)$(CC) -dM -E -) +ifeq ($(findstring __clang__,$(CPPDEFINES)),__clang__) +CFLAGS += -mmacosx-version-min=10.5 ifneq ($(ISYSROOT),) CFLAGS += -isysroot $(ISYSROOT) endif +endif SOURCES := \ src/ciphers/aes/aes.c src/ciphers/aes/aes_tab.c \ - src/misc/crypt/crypt_argchk.c src/misc/crypt/crypt_register_cipher.c src/misc/crypt/crypt_cipher_is_valid.c src/misc/crypt/crypt_cipher_descriptor.c \ + src/misc/crypt/crypt_argchk.c src/misc/crypt/crypt_register_cipher.c \ + src/misc/crypt/crypt_cipher_is_valid.c src/misc/crypt/crypt_cipher_descriptor.c \ src/misc/zeromem.c src/misc/compare_testvector.c \ src/modes/cbc/cbc_start.c src/modes/cbc/cbc_decrypt.c src/modes/cbc/cbc_encrypt.c \ src/hashes/sha1.c -- cgit