* dynl.c: Don't define stub procedures if DYNAMIC_LINKING is not
[bpt/guile.git] / libguile / extensions.c
index 7fd311c..c011941 100644 (file)
@@ -103,9 +103,11 @@ load_extension (SCM lib, SCM init)
        }
   }
 
+#if defined (DYNAMIC_LINKING)
   /* Dynamically link the library. */
 
   scm_dynamic_call (init, scm_dynamic_link (lib));
+#endif
 }
 
 void