summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorIlya Zakharevich <ilya@math.berkeley.edu>2003-10-29 06:00:18 -0800
committerNicholas Clark <nick@ccl4.org>2003-11-02 18:22:16 +0000
commit59ad941d06909cf9027c5fb10edca7d68fc7149b (patch)
tree31cbe92fcf6d4df0a555139b93ead70dafd6824d /ext
parentdf500c58e3444bfdd2437855ea268d802281b50e (diff)
downloadperl-59ad941d06909cf9027c5fb10edca7d68fc7149b.tar.gz
OS/2 build
Message-ID: <20031029220017.GA26384@math.berkeley.edu> p4raw-id: //depot/perl@21620
Diffstat (limited to 'ext')
-rw-r--r--ext/DynaLoader/DynaLoader_pm.PL9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/DynaLoader/DynaLoader_pm.PL b/ext/DynaLoader/DynaLoader_pm.PL
index 8a3e6e1e73..8dfb5d436c 100644
--- a/ext/DynaLoader/DynaLoader_pm.PL
+++ b/ext/DynaLoader/DynaLoader_pm.PL
@@ -229,6 +229,15 @@ sub bootstrap {
" dynamic loading or has the $module module statically linked into it.)\n")
unless defined(&dl_load_file);
+EOT
+
+print OUT <<'EOT' if $^O eq 'os2';
+ # 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';
my @modparts = split(/::/,$module);
my $modfname = $modparts[-1];