diff options
author | Peter Prymmer <PPrymmer@factset.com> | 2001-01-19 10:12:05 -0800 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-01-20 22:21:18 +0000 |
commit | ac9901e0f0bc12ad100c6e8b5f8bd40595e928ad (patch) | |
tree | cd9d5d7d0a39c43a995b189f21e4f449dd007376 /hints/os390.sh | |
parent | 35a776681335588172b2b70a0fac16df92ac12d8 (diff) | |
download | perl-ac9901e0f0bc12ad100c6e8b5f8bd40595e928ad.tar.gz |
partial support for dynaloading on OS/390
Message-ID: <Pine.OSF.4.10.10101191646420.61158-100000@aspara.forte.com>
p4raw-id: //depot/perl@8487
Diffstat (limited to 'hints/os390.sh')
-rw-r--r-- | hints/os390.sh | 64 |
1 files changed, 37 insertions, 27 deletions
diff --git a/hints/os390.sh b/hints/os390.sh index 7a696348ac..ee75172446 100644 --- a/hints/os390.sh +++ b/hints/os390.sh @@ -3,7 +3,8 @@ # OS/390 hints by David J. Fiander <davidf@mks.com> # # OS/390 OpenEdition Release 3 Mon Sep 22 1997 thanks to: -# +# +# John Goodyear <johngood@us.ibm.com> # John Pfuntner <pfuntner@vnet.ibm.com> # Len Johnson <lenjay@ibm.net> # Bud Huff <BAHUFF@us.oracle.com> @@ -42,27 +43,12 @@ case "$optimize" in '') optimize='none' ;; esac -# ccdlflags have yet to be determined. -#case "$ccdlflags" in -#'') ccdlflags='-c' ;; -#esac - # To link via definition side decks we need the dll option # You can override this with Configure -Ucccdlflags or somesuch. case "$cccdlflags" in -'') cccdlflags='-W 0,dll,"langlvl(extended)"' ;; +'') cccdlflags='-W 0,dll' ;; esac -# ldflags have yet to be determined. -#case "$ldflags" in -#'') ldflags='' ;; -#esac - -# lddlflags have yet to be determined. -#case "$lddlflags" in -#'') lddlflags='' ;; -#esac - case "$so" in '') so='a' ;; esac @@ -83,17 +69,41 @@ case "$usenm" in esac # Dynamic loading doesn't work on OS/390 quite yet. -# You can override this with -# Configure -Dusedl -Ddlext=.so -Ddlsrc=dl_dllload.xs. +# However the easiest way to experiment with dynamic loading is with: +# Configure -Dusedl +# You can even override some of this with things like: +# Configure -Dusedl -Ddlext=so -Ddlsrc=dl_dllload.xs. case "$usedl" in -'') usedl='n' ;; -esac -case "$dlext" in -'') dlext='none' ;; -esac -#case "$dlsrc" in -#'') dlsrc='none' ;; -#esac +'') + usedl='n' + case "$dlext" in + '') dlext='none' ;; + esac + ;; +define) + case "$useshrplib" in + '') useshrplib='true' ;; + esac + case "$dlext" in + '') dlext='dll' ;; + esac + case "$dlsrc" in + '') dlsrc='dl_dllload.xs' ;; + esac + so='dll' + libperl='libperl.dll' + ccflags="$ccflags -D_SHR_ENVIRON -DPERL_EXTERNAL_GLOB -Wc,dll" + cccdlflags='-c -Wc,dll,EXPORTALL' + # You might add '-Wl,EDIT=NO' to get rid of the symbol + # information at the end of the executable. + # + # The following will need to be modified for the installed libperl.x + ccdlflags="-W l,dll `pwd`/libperl.x" + ldflags='' + lddlflags='-W l,dll' + ;; +esac +# even on static builds using LIBPATH should be OK. case "$ldlibpthname" in '') ldlibpthname=LIBPATH ;; esac |