This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
0a3a677edddc8bfafca5bac5553907692c3ed7c0
[perl5.git] / hints / vos.sh
1 # This is a hints file for Stratus OpenVOS, using the POSIX environment
2 # found in VOS 17.1.0 and higher.
3 #
4 # OpenVOS POSIX is based on POSIX.1-1996 and contains elements of
5 # POSIX.1-2001.  It ships with gcc as the standard compiler.
6 #
7 # Paul Green (Paul.Green@stratus.com)
8
9 # C compiler and default options.
10 cc=gcc
11 ccflags="-D_XOPEN_SOURCE=700 -D_VOS_EXTENDED_NAMES"
12 ccdlflags="-Wl,-rpath,$shrpdir"
13 cccdlflags="-fPIC"
14
15 # Make command.
16 make="/system/gnu_library/bin/gmake"
17 # indented to not put it into config.sh
18   _make="/system/gnu_library/bin/gmake"
19
20 # Check for the minimum acceptable release of OpenVOS (17.1.0).
21 if test `uname -r | sed -e 's/OpenVOS Release //' -e 's/VOS Release //'` \< "17.1.0"; then
22 cat >&4 <<EOF
23 ***
24 *** This version of Perl 5 must be built on OpenVOS Release 17.1.0 or later.
25 ***
26 EOF
27 exit 1
28 fi
29
30 # Always X86
31 archname=`uname -m`
32
33 # Executable suffix.
34 # No, this is not a typo.  The ".pm" really is the native
35 # executable suffix in VOS.  Talk about cosmic resonance.
36 _exe=".pm"
37
38 # Object library paths.
39 loclibpth="$loclibpth /system/posix_object_library"
40 loclibpth="$loclibpth /system/c_object_library"
41 loclibpth="$loclibpth /system/object_library"
42 glibpth="$loclibpth"
43
44 # Include library paths
45 locincpth=""
46 usrinc="/system/include_library"
47
48 # Where to install perl5.
49 prefix=/system/ported/perl5
50
51 # Linker is gcc.
52 ld="gcc"
53 lddlflags="-shared"
54
55 # Shared libraries!
56 so="so"
57
58 # Build libperl.so
59 useshrplib="true"
60
61 # Don't use nm. The VOS copy of libc.a is empty.
62 usenm="n"
63
64 # Make the default be no large file support.
65 uselargefiles="n"
66
67 # Don't use malloc that comes with perl.
68 usemymalloc="n"
69
70 # Make bison the default compiler-compiler.
71 yacc="/system/gnu_library/bin/bison"
72
73 # VOS doesn't have (or need) a pager, but perl needs one.
74 pager="/system/gnu_library/bin/cat.pm"
75
76 # VOS has a bug that causes _exit() to flush all files.
77 # This confuses the tests.  Make 'em happy here.
78 fflushNULL=define
79
80 # VOS has a link() function but it is a dummy.
81 d_link="undef"
82
83 # VOS does not have truncate() but we supply one in vos.c
84 d_truncate="define"
85 archobjs="vos.o"
86
87 # Help gmake find vos.c
88 test -h vos.c || ln -s vos/vos.c vos.c
89
90 # Tell Configure where to find the hosts file.
91 hostcat="cat /system/stcp/hosts"