diff --git a/devel/ccache/Makefile b/devel/ccache/Makefile index 66a901f2e1af..d8fe070c6e13 100644 --- a/devel/ccache/Makefile +++ b/devel/ccache/Makefile @@ -28,6 +28,8 @@ OPTIONS_DEFINE= CLANGLINK LLVMLINK STATIC DOCS CLANGLINK_DESC= Create clang compiler links if clang is installed LLVMLINK_DESC= Create llvm compiler links if llvm is installed +STATIC_LDFLAGS= -static + .include PLIST_SUB+= CCLINKDIR="${CCLINKDIR}" @@ -47,10 +49,6 @@ CCACHE_COMPILERS+= clang clang++ CCACHE_COMPILERS+= llvm-gcc llvm-c++ llvm-g++ .endif -.if ${PORT_OPTIONS:MSTATIC} -LDFLAGS+= "--static" -.endif - CCACHE_COMPILERS+= ${EXTRA_COMPILERS} SUB_LIST+= CCACHE_COMPILERS="${CCACHE_COMPILERS}" \ CCLINKDIR="${CCLINKDIR}" \