diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-06 17:18:39 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-06 17:18:39 +0000 |
commit | 24e8e38014028731fb2fddf4fe788525eb66a6b5 (patch) | |
tree | 73f8787e5729b6649526706dd34657ea8ca2581b /vos/build.cm | |
parent | 18b095192e336ba31465f4d3dab1ecc90871c3a9 (diff) | |
download | perl-24e8e38014028731fb2fddf4fe788525eb66a6b5.tar.gz |
VOS port updates (from Paul Green <Paul_Green@stratus.com>)
p4raw-id: //depot/perl@5005
Diffstat (limited to 'vos/build.cm')
-rw-r--r-- | vos/build.cm | 100 |
1 files changed, 60 insertions, 40 deletions
diff --git a/vos/build.cm b/vos/build.cm index 937e4d7807..8719d050c4 100644 --- a/vos/build.cm +++ b/vos/build.cm @@ -32,6 +32,10 @@ &if &cpu& = pa8000 &then &set_string obj .8000 & +&if &cpu& = mc68020 +&then &set_string obj2 .68k +&else &set_string obj2 &obj& +& &set_string cpu -processor &cpu& & & If requested, compile the source code. @@ -39,72 +43,88 @@ &if &recompile& = 0 &then &goto CHECK_REBIND & -!set_library_paths include << < &POSIX&>incl <tcp_os_incl &+ +!set_library_paths include << < &POSIX&>incl &+ (master_disk)>system>include_library & +&if (exists *.obj -link) +&then !unlink *.obj -no_ask -brief +& & Suppress several harmless compiler warning and advice messages. +& Use -list -show_include all -show_macros both_ways when debugging. & -!cc <<av.c -suppress_diag 2006 2064 2065 &cpu& -O4 -&if (command_status) ^= 0 &then &return -!cc <<byterun.c -suppress_diag 2006 &cpu& -O4 +&set_string cflags '-u -O4 -D_POSIX_C_SOURCE=199309L -DPERL_CORE' +& +!cc <<av.c -suppress_diag 2006 2064 2065 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<deb.c -suppress_diag 2006 &cpu& -O4 +!cc <<deb.c -suppress_diag 2006 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<doio.c -suppress_diag 2006 &cpu& -O4 +!cc <<doio.c -suppress_diag 2006 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<doop.c -suppress_diag 2006 &cpu& -O4 +!cc <<doop.c -suppress_diag 2006 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<dump.c -suppress_diag 2006 &cpu& -O4 +!cc <<dump.c -suppress_diag 2006 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<ebcdic.c -suppress_diag 2006 &cpu& -O4 +!cc <<ebcdic.c -suppress_diag 2006 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<globals.c -suppress_diag 2006 &cpu& -O4 +!cc <<globals.c -suppress_diag 2006 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<gv.c -suppress_diag 2006 2065 &cpu& -O4 +!cc <<gv.c -suppress_diag 2006 2065 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<hv.c -suppress_diag 2006 &cpu& -O4 +!cc <<hv.c -suppress_diag 2006 &cpu& &cflags& &if (command_status) ^= 0 &then &return -& !cc <<malloc.c -suppress_diag 2006 &cpu& -O4 +& !cc <<malloc.c -suppress_diag 2006 &cpu& &cflags& & &if (command_status) ^= 0 &then &return -!cc <<mg.c -suppress_diag 2006 2064 2065 &cpu& -O4 +!cc <<mg.c -suppress_diag 2006 2064 2065 &cpu& &cflags& +&if (command_status) ^= 0 &then &return +!cc <<miniperlmain.c -suppress_diag 2006 &cpu& &cflags& +&if (command_status) ^= 0 &then &return +!cc <<op.c -suppress_diag 2006 2064 2065 &cpu& &cflags& +&if (command_status) ^= 0 &then &return +!cc <<perl.c -suppress_diag 2006 2053 2065 &cpu& &cflags& &+ + -DARCHLIB="/system/ported/perl/lib/5.005&obj2&" &+ + -DARCHLIB_EXP="/system/ported/perl/lib/5.005&obj2&" &+ + -DSITEARCH="/system/ported/perl/lib/site/5.005&obj2&" &+ + -DSITEARCH_EXP="/system/ported/perl/lib/site/5.005&obj2&" &if (command_status) ^= 0 &then &return -!cc <<miniperlmain.c -suppress_diag 2006 &cpu& -O4 +!cc <<perlapi.c &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<op.c -suppress_diag 2006 2064 2065 &cpu& -O4 +!cc <<perlio.c -suppress_diag 2006 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<perl.c -suppress_diag 2006 2065 &cpu& -O4 &+ - -DARCHLIB=">system>ported>perl&obj&" &+ - -DARCHLIB_EXP=">system>ported>perl&obj&" +!cc <<perly.c -suppress_diag 2006 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<perlio.c -suppress_diag 2006 &cpu& -O4 +& compiling pp.c for the PA-RISC hits compiler bug pcg-98; avoid it. +& The bug is fixed in VOS 14.1.0 and all later releases. +&if (index (string &cpu&) pa) > 0 & (module_info os_release) < 'VOS Release 14.1.0' +&then !cc <<pp.c -suppress_diag 2006 2064 2065 &cpu& &cflags& -no_schedule +&else !cc <<pp.c -suppress_diag 2006 2064 2065 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<perly.c -suppress_diag 2006 &cpu& -O4 +!cc <<pp_ctl.c -suppress_diag 2006 2064 2065 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<pp.c -suppress_diag 2006 2064 &cpu& -O4 +!cc <<pp_hot.c -suppress_diag 2006 2064 2065 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<pp_ctl.c -suppress_diag 2006 2064 2065 &cpu& -O4 +!cc <<pp_sys.c -suppress_diag 2006 2064 2065 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<pp_hot.c -suppress_diag 2006 2064 &cpu& -O4 +!cc <<regcomp.c -suppress_diag 2006 2064 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<pp_sys.c -suppress_diag 2006 2064 2065 &cpu& -O4 +!cc <<regexec.c -suppress_diag 2006 2064 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<regcomp.c -suppress_diag 2006 &cpu& -O4 +!cc <<run.c -suppress_diag 2006 2065 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<regexec.c -suppress_diag 2006 &cpu& -O4 +!cc <<scope.c -suppress_diag 2006 2064 2065 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<run.c -suppress_diag 2006 &cpu& -O4 +!cc <<sv.c -suppress_diag 2006 2065 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<scope.c -suppress_diag 2006 2064 2065 &cpu& -O4 +!cc <<taint.c -suppress_diag 2006 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<sv.c -suppress_diag 2006 2065 &cpu& -O4 +!cc <<toke.c -suppress_diag 2006 2064 2065 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<taint.c -suppress_diag 2006 &cpu& -O4 +!cc <<universal.c -suppress_diag 2006 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<toke.c -suppress_diag 2006 2065 &cpu& -O4 +!cc <<utf8.c -suppress_diag 2065 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<universal.c -suppress_diag 2006 &cpu& -O4 +!cc <<util.c -suppress_diag 2006 2065 &cpu& &cflags& &if (command_status) ^= 0 &then &return -!cc <<util.c -suppress_diag 2006 2065 &cpu& -O4 +!cc <<xsutils.c &cpu& &cflags& &if (command_status) ^= 0 &then &return !cc <vos_dummies.c &cpu& -O4 &if (command_status) ^= 0 &then &return @@ -115,16 +135,16 @@ &if &rebind& = 0 &then &return & -&if (exists -directory (master_disk)>system>tcp_os>object_library&obj&) -&then &set_string tcp_objlib (master_disk)>system>tcp_os>object_library&obj& +&if (exists -directory (master_disk)>system>tcp_os>object_library&obj2&) +&then &set_string tcp_objlib (master_disk)>system>tcp_os>object_library&obj2& &else &set_string tcp_objlib (master_disk)>system>tcp_os>object_library & -&if (exists -directory (master_disk)>system>object_library&obj&) -&then &set_string objlib (master_disk)>system>object_library&obj& +&if (exists -directory (master_disk)>system>object_library&obj2&) +&then &set_string objlib (master_disk)>system>object_library&obj2& &else &set_string objlib (master_disk)>system>object_library & -&if (exists -directory (master_disk)>system>c_object_library&obj&) -&then &set_string c_objlib (master_disk)>system>c_object_library&obj& +&if (exists -directory (master_disk)>system>c_object_library&obj2&) +&then &set_string c_objlib (master_disk)>system>c_object_library&obj2& &else &set_string c_objlib (master_disk)>system>c_object_library & !set_library_paths object . &+ |