Files
macports-ports/security/libtomcrypt/files/patch-unbreak-10.6.diff

22 lines
522 B
Diff

--- makefile_include.mk.orig 2023-04-15 18:26:17.000000000 +0800
+++ makefile_include.mk 2023-04-15 18:26:46.000000000 +0800
@@ -92,7 +92,9 @@
LTC_CFLAGS += -Wwrite-strings
endif
+ifneq ($(findstring clang,$(CC)),)
LTC_CFLAGS += -Wno-type-limits
+endif
ifdef LTC_DEBUG
$(info Debug build)
@@ -128,7 +130,7 @@
ifneq ($(findstring mingw,$(CC)),)
LTC_CFLAGS += -Wno-shadow -Wno-attributes
endif
-ifeq ($(PLATFORM), Darwin)
+ifneq ($(findstring clang,$(CC)),)
LTC_CFLAGS += -Wno-nullability-completeness
endif