diff --git a/lib/compat/Makefile.inc b/lib/compat/Makefile.inc index 99222aa1987e..206c4372d79f 100644 --- a/lib/compat/Makefile.inc +++ b/lib/compat/Makefile.inc @@ -7,6 +7,7 @@ beforeinstall: __remove-stale-libs __remove-stale-libs: .PHONY .for lib in ${LIBS} .if exists(${DESTDIR}${SHLIBDIR}/${lib}) + -chflags noschg ${DESTDIR}${SHLIBDIR}/${lib} rm -f ${DESTDIR}${SHLIBDIR}/${lib} .endif .endfor