git: 533e1cea6cd9 - main - devel/ccache4: Fix build with STATIC option

From: Adam Weinberger <adamw_at_FreeBSD.org>
Date: Wed, 02 Aug 2023 10:54:12 UTC
The branch main has been updated by adamw:

URL: https://cgit.FreeBSD.org/ports/commit/?id=533e1cea6cd9c9b6b1afc2ece1648c70e8d7a4ed

commit 533e1cea6cd9c9b6b1afc2ece1648c70e8d7a4ed
Author:     Adam Weinberger <adamw@FreeBSD.org>
AuthorDate: 2023-08-02 10:53:26 +0000
Commit:     Adam Weinberger <adamw@FreeBSD.org>
CommitDate: 2023-08-02 10:54:07 +0000

    devel/ccache4: Fix build with STATIC option
    
    PR:             272880
---
 devel/ccache4/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/devel/ccache4/Makefile b/devel/ccache4/Makefile
index f1dadfa4a86d..6ab6da380f43 100644
--- a/devel/ccache4/Makefile
+++ b/devel/ccache4/Makefile
@@ -34,8 +34,7 @@ CMAKE_OFF=	WARNINGS_AS_ERRORS \
 		ENABLE_IPO \
 		ZSTD_FROM_INTERNET \
 		ENABLE_TRACING \
-		REDIS_STORAGE_BACKEND \
-		STATIC_LINK
+		REDIS_STORAGE_BACKEND
 
 OPTIONS_DEFINE=	DOCS CLANGLINK LLVMLINK STATIC TEST
 OPTIONS_DEFAULT=CLANGLINK LLVMLINK
@@ -50,6 +49,7 @@ CLANGLINK_DESC=	Create clang compiler links if clang is installed
 LLVMLINK_DESC=	Create llvm compiler links if llvm is installed
 
 STATIC_LDFLAGS=	-static
+STATIC_CMAKE_BOOL=	STATIC_LINK
 
 TEST_CMAKE_BOOL=ENABLE_TESTING
 TEST_TARGET=	check