diff --git a/scripts/checklibs.sh b/scripts/checklibs.sh
index 100e0ddd3e518af5baa858c2804ae764feb16ef6..119ead0a4855eb5c9a40d480436548113f78d938 100755
--- a/scripts/checklibs.sh
+++ b/scripts/checklibs.sh
@@ -13,7 +13,7 @@ LIBDIR=${2:-../lib}
 
 # find all libs
 # libraries are real files with the extensions .so and for macosx .dylib
-all_libs=$(find $LIBDIR -type f | grep -e \.dylib$ -e \.so$)
+all_libs=$(find $LIBDIR -type f -o -type l | grep -e \.dylib$ -e \.so$)
 
 tmpfile=$(mktemp)