This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update podlators to CPAN version 4.10
[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=${CC-gcc}
11 ccflags=${CFLAGS-"-D_XOPEN_SOURCE=700 -D_SYSV -D_VOS_EXTENDED_NAMES -D_FILE_OFFSET_BITS=64"}
12
13 # Make command.
14 make=${MAKE-"/system/gnu_library/bin/gmake"}
15 # indented to not put it into config.sh
16   _make=${MAKE-"/system/gnu_library/bin/gmake"}
17
18 # Check for the minimum acceptable release of OpenVOS (17.1.0).
19 if test `uname -r | sed -e 's/OpenVOS Release //' -e 's/VOS Release //'` \< "17.1.0"; then
20 cat >&4 <<EOF
21 ***
22 *** This version of Perl 5 must be built on OpenVOS Release 17.1.0 or later.
23 ***
24 EOF
25 exit 1
26 fi
27
28 # Architecture name always X86
29 archname=`uname -m`
30
31 # Executable suffix.
32 # No, this is not a typo.  The ".pm" really is the native
33 # executable suffix in VOS.  Talk about cosmic resonance.
34 _exe=".pm"
35
36 # Object library paths.
37 loclibpth="$loclibpth /system/posix_object_library"
38 loclibpth="$loclibpth /system/c_object_library"
39 loclibpth="$loclibpth /system/object_library"
40 glibpth="$loclibpth"
41
42 # Include library paths
43 locincpth=""
44 usrinc=${USRINC-"/system/include_library"}
45
46 # Where to install perl5.
47 prefix=/system/ported
48
49 # Linker is gcc.
50 ld=${CC-"gcc"}
51
52 # Don't use nm. The VOS copy of libc.a is empty.
53 usenm="n"
54
55 # Don't use malloc that comes with perl.
56 usemymalloc="n"
57
58 # Make bison the default compiler-compiler.
59 yacc="/system/gnu_library/bin/bison"
60
61 # VOS doesn't need a pager, but perl does.
62 pager="/system/gnu_library/bin/less.pm"
63
64 # VOS has a bug that causes _exit() to flush all files.
65 # This confuses the tests.  Make 'em happy here.
66 fflushNULL=define
67
68 # VOS has a link() function but it is a dummy.
69 d_link="undef"
70
71 # VOS does not have truncate() but we supply one in vos.c
72 d_truncate="define"
73 archobjs="vos.o"
74
75 # Help gmake find vos.c
76 test -h vos.c || ln -s vos/vos.c vos.c
77
78 # Tell Configure where to find the hosts file.
79 hostcat="cat /system/stcp/hosts"
80
81 # VOS 17.1 has support for dynamic linking.
82 usedl="define"
83
84 # Filename suffix for shared libraries.
85 so="so"
86
87 # Flags used when compiling a module for a shared library.
88 cccdlflags="-fPIC"
89
90 # Flags passed to $ld to produce shared libraries.
91 lddlflags="-shared"
92
93 # Flags passed to $cc when linking a program that uses shared libraries.
94 ccdlflags="-Wl,-export-dynamic"
95
96 # Filename suffix for dynamically-loaded perl modules.
97 dlext="so"
98
99 # Use dlopen() to open shared libraries.
100 dlsrc="dl_dlopen.xs"
101
102 # Build a shared libperl?  (Define on Configure cmd line.)
103 # useshrplib="true"