diff --git a/databases/couchdb2/Makefile b/databases/couchdb2/Makefile
index 760cd45ea98e..c235b4e2b368 100644
--- a/databases/couchdb2/Makefile
+++ b/databases/couchdb2/Makefile
@@ -93,7 +93,7 @@ pre-install:
post-install:
@${FIND} -E ${STAGEDIR} -type f \
- -name couchjs -o -name \*.so \
+ -regex '.+/(couchjs|.+.so)$$' \
-exec ${STRIP_CMD} {} +
@${MKDIR} \
${STAGEDIR}/var/db/${PORTNAME} \