Index: src/check-symbols.py
--- src/check-symbols.py.orig
+++ src/check-symbols.py
@@ -59,7 +59,7 @@ tested = False
 stat = 0
 
 for soname in CHECK_SYMBOL_LIBS:
-    for suffix in ["so", "dylib"]:
+    for suffix in ["so.${LIBharfbuzz_VERSION}", "dylib"]:
         so = os.path.join(builddir, "lib%s.%s" % (soname, suffix))
         if not os.path.exists(so):
             continue
