--- ./ext/DynaLoader/XSLoader_pm.PL.orig	Sat Aug 30 00:26:12 2003
+++ ./ext/DynaLoader/XSLoader_pm.PL	Wed Oct 29 01:22:28 2003
@@ -57,6 +57,9 @@ print OUT <<'EOT' if defined &DynaLoader
     # It may also edit @modparts if required.
     $modfname = &mod2fname(\@modparts) if defined &mod2fname;
 
+    # Some systems can dynaload, but cannot dynaload Perl modules...
+    die 'Dynaloaded Perl modules are not available in this build of Perl' if $OS2::is_static;
+
 EOT
 
 print OUT <<'EOT';
