summaryrefslogtreecommitdiff
path: root/hints/vos.sh
blob: 2401f6917be1189243e9b134368175f7559f1e71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# This is a hints file for Stratus OpenVOS, using the POSIX environment
# found in VOS 17.1.0 and higher.
#
# OpenVOS POSIX is based on POSIX.1-1996 and contains elements of
# POSIX.1-2001.  It ships with gcc as the standard compiler.
#
# Paul Green (Paul.Green@stratus.com)

# C compiler and default options.
cc=${CC-gcc}
ccflags=${CFLAGS-"-D_XOPEN_SOURCE=700 -D_SYSV -D_VOS_EXTENDED_NAMES -D_FILE_OFFSET_BITS=64"}

# Make command.
make=${MAKE-"/system/gnu_library/bin/gmake"}
# indented to not put it into config.sh
  _make=${MAKE-"/system/gnu_library/bin/gmake"}

# Check for the minimum acceptable release of OpenVOS (17.1.0).
if test `uname -r | sed -e 's/OpenVOS Release //' -e 's/VOS Release //'` \< "17.1.0"; then
cat >&4 <<EOF
***
*** This version of Perl 5 must be built on OpenVOS Release 17.1.0 or later.
***
EOF
exit 1
fi

# Architecture name always X86
archname=`uname -m`

# Executable suffix.
# No, this is not a typo.  The ".pm" really is the native
# executable suffix in VOS.  Talk about cosmic resonance.
_exe=".pm"

# Object library paths.
loclibpth="$loclibpth /system/posix_object_library"
loclibpth="$loclibpth /system/c_object_library"
loclibpth="$loclibpth /system/object_library"
glibpth="$loclibpth"

# Include library paths
locincpth=""
usrinc=${USRINC-"/system/include_library"}

# Where to install perl5.
prefix=/system/ported

# Linker is gcc.
ld=${CC-"gcc"}

# Don't use nm. The VOS copy of libc.a is empty.
usenm="n"

# Don't use malloc that comes with perl.
usemymalloc="n"

# Make bison the default compiler-compiler.
yacc="/system/gnu_library/bin/bison"

# VOS doesn't need a pager, but perl does.
pager="/system/gnu_library/bin/less.pm"

# VOS has a bug that causes _exit() to flush all files.
# This confuses the tests.  Make 'em happy here.
fflushNULL=define

# VOS has a link() function but it is a dummy.
d_link="undef"

# VOS does not have truncate() but we supply one in vos.c
d_truncate="define"
archobjs="vos.o"

# Help gmake find vos.c
test -h vos.c || ln -s vos/vos.c vos.c

# Tell Configure where to find the hosts file.
hostcat="cat /system/stcp/hosts"

# VOS 17.1 has support for dynamic linking.
usedl="define"

# Filename suffix for shared libraries.
so="so"

# Flags used when compiling a module for a shared library.
cccdlflags="-fPIC"

# Flags passed to $ld to produce shared libraries.
lddlflags="-shared"

# Flags passed to $cc when linking a program that uses shared libraries.
ccdlflags="-Wl,-export-dynamic"

# Filename suffix for dynamically-loaded perl modules.
dlext="so"

# Use dlopen() to open shared libraries.
dlsrc="dl_dlopen.xs"

# Build a shared libperl?  (Define on Configure cmd line.)
# useshrplib="true"