--- Lib/ctypes/macholib/dyld.py.orig
+++ Lib/ctypes/macholib/dyld.py
@@ -23,7 +23,7 @@ DEFAULT_FRAMEWORK_FALLBACK = [
 
 DEFAULT_LIBRARY_FALLBACK = [
     os.path.expanduser("~/lib"),
-    "/usr/local/lib",
+    "@@PREFIX@@/lib",
     "/lib",
     "/usr/lib",
 ]
