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