If NO_DYNAMIC_LINK is defined, load_dynamic_module() will always fail.
diff --git a/Python/importdl.c b/Python/importdl.c
index e05e50f..b1b13a1 100644
--- a/Python/importdl.c
+++ b/Python/importdl.c
@@ -214,6 +214,10 @@
 	{0, 0}
 };
 
+#ifdef NO_DYNAMIC_LINK
+#undef DYNAMIC_LINK
+#endif
+
 object *
 load_dynamic_module(name, pathname, fp)
 	char *name;