diff options
-rw-r--r-- | utils/tomcrypt/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
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 | |||
25 | CFLAGS := -O3 -g -std=c99 -Wall $(DEFINES) -Isrc/headers | 25 | CFLAGS := -O3 -g -std=c99 -Wall $(DEFINES) -Isrc/headers |
26 | LDFLAGS := | 26 | LDFLAGS := |
27 | 27 | ||
28 | CPPDEFINES := $(shell echo foo | $(CROSS)$(CC) -dM -E -) | ||
29 | ifeq ($(findstring __clang__,$(CPPDEFINES)),__clang__) | ||
30 | CFLAGS += -mmacosx-version-min=10.5 | ||
28 | ifneq ($(ISYSROOT),) | 31 | ifneq ($(ISYSROOT),) |
29 | CFLAGS += -isysroot $(ISYSROOT) | 32 | CFLAGS += -isysroot $(ISYSROOT) |
30 | endif | 33 | endif |
34 | endif | ||
31 | 35 | ||
32 | SOURCES := \ | 36 | SOURCES := \ |
33 | src/ciphers/aes/aes.c src/ciphers/aes/aes_tab.c \ | 37 | src/ciphers/aes/aes.c src/ciphers/aes/aes_tab.c \ |
34 | 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 \ | 38 | src/misc/crypt/crypt_argchk.c src/misc/crypt/crypt_register_cipher.c \ |
39 | src/misc/crypt/crypt_cipher_is_valid.c src/misc/crypt/crypt_cipher_descriptor.c \ | ||
35 | src/misc/zeromem.c src/misc/compare_testvector.c \ | 40 | src/misc/zeromem.c src/misc/compare_testvector.c \ |
36 | src/modes/cbc/cbc_start.c src/modes/cbc/cbc_decrypt.c src/modes/cbc/cbc_encrypt.c \ | 41 | src/modes/cbc/cbc_start.c src/modes/cbc/cbc_decrypt.c src/modes/cbc/cbc_encrypt.c \ |
37 | src/hashes/sha1.c | 42 | src/hashes/sha1.c |