diff options
author | Karl Williamson <public@khwilliamson.com> | 2013-03-15 12:26:15 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2015-03-10 15:41:33 -0600 |
commit | 9bf21945eb5d1ee1e840e7f21c616adb230ce51c (patch) | |
tree | 86ea33be1308abc246337ba4fbfe75a550f5414b /hints | |
parent | c68fc1f1983b470e12478d4ea38a759a54d50a47 (diff) | |
download | perl-9bf21945eb5d1ee1e840e7f21c616adb230ce51c.tar.gz |
hints/os390.sh: Update
Diffstat (limited to 'hints')
-rw-r--r-- | hints/os390.sh | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/hints/os390.sh b/hints/os390.sh index 93e889fb23..42bceecc54 100644 --- a/hints/os390.sh +++ b/hints/os390.sh @@ -18,10 +18,10 @@ # To get ANSI C, we need to use c89, and ld doesn't exist # You can override this with Configure -Dcc=gcc -Dld=ld. case "$cc" in -'') cc='c89' ;; +'') cc='c99' ;; esac case "$ld" in -'') ld='c89' ;; +'') ld='c99' ;; esac # -DMAXSIG=39 maximum signal number @@ -33,8 +33,8 @@ esac # -DEBCDIC should come from Configure and need not be mentioned here. # Prepend your favorites with Configure -Dccflags=your_favorites case "$ccflags" in -'') ccflags='-2 -Wc,XPLINK -DMAXSIG=39 -DOEMVS -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE -DYYDYNAMIC' ;; -*) ccflags="$ccflags -2 -Wc,XPLINK -DMAXSIG=39 -DOEMVS -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE -DYYDYNAMIC" ;; +'') ccflags='-qlanglvl=extended:extc89:extc99 -qlongname -qxplink -qdll -qfloat=ieee -qhaltonmsg=3296:4108 -DMAXSIG=39 -DOEMVS -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE -DYYDYNAMIC -D_POSIX_SOURCE=1' ;; +*) ccflags='$ccflags -qlanglvl=extended:extc89:extc99 -qlongname -qxplink -qdll -qfloat=ieee -qhaltonmsg=3296:4108 -DMAXSIG=39 -DOEMVS -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE -DYYDYNAMIC -D_POSIX_SOURCE=1' ;; esac # Turning on optimization breaks perl. @@ -46,7 +46,7 @@ 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' ;; +'') cccdlflags='-qxplink -qdll' ;; esac case "$so" in @@ -72,7 +72,7 @@ esac # information at the end of the executable (=> smaller binaries). # Override this option with -Dldflags='whatever else you wanted'. case "$ldflags" in -'') ldflags='-Wl,EDIT=NO -Wl,XPLINK,dll' ;; +'') ldflags='-qxplink -qdll' ;; esac # In order to build with dynamic be sure to specify: @@ -110,12 +110,12 @@ define) ;; esac libperl="libperl.$so" - ccflags="$ccflags -D_SHR_ENVIRON -DPERL_EXTERNAL_GLOB -Wc,dll" - cccdlflags='-c -Wc,XPLINK,dll,EXPORTALL' + ccflags="$ccflags -D_SHR_ENVIRON -DPERL_EXTERNAL_GLOB -qexportall -qdll -qxplink" + cccdlflags='-c -qexportall -qxplink -qdll' # The following will need to be modified for the installed libperl.x. # The modification to Config.pm is done by the installperl script after the build and test. - ccdlflags="-W l,XPLINK,dll `pwd`/libperl.x" - lddlflags="-W l,XPLINK,dll `pwd`/libperl.x" + ccdlflags="-qxplink -qdll `pwd`/libperl.x" + lddlflags="-qxplink -qdll `pwd`/libperl.x" ;; esac # even on static builds using LIBPATH should be OK. @@ -219,13 +219,6 @@ fi # sprintf() seems to get things right(er). gconvert_preference=sprintf -cat >config.arch<<'__CONFIG_ARCH__' -# The '-W 0,float(ieee)' cannot be used during Configure as ldflags. - -ccflags="$ccflags -W 0,float(ieee) -W 0,LANGLVL(LONGLONG)" - -__CONFIG_ARCH__ - # Configure gets these wrong for some reason. d_gethostbyaddr_r='undef' d_gethostbyname_r='undef' |