summaryrefslogtreecommitdiff
path: root/misc/compat4x/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'misc/compat4x/Makefile')
-rw-r--r--misc/compat4x/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/compat4x/Makefile b/misc/compat4x/Makefile
index eeab0fa2f4ea..fd46e44e880d 100644
--- a/misc/compat4x/Makefile
+++ b/misc/compat4x/Makefile
@@ -147,4 +147,7 @@ post-install: install-ldconfig-file
.endif
@${CAT} ${PKGMESSAGE}
+pre-clean:
+ @[ -w ${WRKSRC} ] && chflags -R noschg ${WRKSRC} || ${TRUE}
+
.include <bsd.port.post.mk>