X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fos390.sh;h=08b60c878e4c47501d6ff726955e96ed61f05896;hb=619ffc2be66f166b301c5b0d14a8bbba728675bc;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=cfb55b37fb4b34b9bef44809cb383c4450d1d628;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/os390.sh b/hints/os390.sh index e69de29..08b60c8 100644 --- a/hints/os390.sh +++ b/hints/os390.sh @@ -0,0 +1,61 @@ +# hints/os390.sh +# +# OS/390 hints by David J. Fiander +# +# OS/390 OpenEdition Release 3 Mon Sep 22 1997 thanks to: +# +# John Pfuntner +# Len Johnson +# Bud Huff +# Peter Prymmer +# Andy Dougherty +# Tim Bunce +# +# as well as the authors of the aix.sh file +# + +# To get ANSI C, we need to use c89, and ld doesn't exist +cc='c89' +ld='c89' +# To link via definition side decks we need the dll option +cccdlflags='-W 0,dll,"langlvl(extended)"' +# c89 hides most of the useful header stuff, _ALL_SOURCE turns it on again, +# YYDYNAMIC ensures that the OS/390 yacc generated parser is reentrant. +# -DEBCDIC should come from Configure. +ccflags='-DMAXSIG=38 -DOEMVS -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE -DYYDYNAMIC' +# Turning on optimization breaks perl +optimize='none' + +alignbytes=8 + +usemymalloc='n' + +so='a' + +# On OS/390, libc.a doesn't really hold anything at all, +# so running nm on it is pretty useless. +usenm='n' + +# Dynamic loading doesn't work on OS/390 quite yet +usedl='n' +dlext='none' + +# Configure can't figure this out for some reason +d_shmatprototype='define' + +usenm='false' +i_time='define' +i_systime='define' + +# (from aix.sh) +# uname -m output is too specific and not appropriate here +# osname should come from Configure +# +case "$archname" in +'') archname="$osname" ;; +esac + +archobjs=ebcdic.o + +# We have our own cppstdin. +echo 'cat >.$$.c; '"$cc"' -E -Wc,NOLOC ${1+"$@"} .$$.c; rm .$$.c' > cppstdin