summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorPaul Green <Paul.Green@stratus.com>2013-03-17 11:41:51 -0400
committerKarl Williamson <public@khwilliamson.com>2013-03-19 15:45:46 -0600
commit61d94d03cb90a0e9c37a71c379b138930c614e00 (patch)
treefd9c6102f173c0a46e04a6225a83507dd9a4dfdf /hints
parentcf9c4992d66e640d2fff4fffa38156a27713f4ed (diff)
downloadperl-61d94d03cb90a0e9c37a71c379b138930c614e00.tar.gz
Update VOS hints file to use dynamic linking and 64-bit stream files
Diffstat (limited to 'hints')
-rw-r--r--hints/vos.sh56
1 files changed, 34 insertions, 22 deletions
diff --git a/hints/vos.sh b/hints/vos.sh
index 0a3a677edd..2401f6917b 100644
--- a/hints/vos.sh
+++ b/hints/vos.sh
@@ -7,15 +7,13 @@
# Paul Green (Paul.Green@stratus.com)
# C compiler and default options.
-cc=gcc
-ccflags="-D_XOPEN_SOURCE=700 -D_VOS_EXTENDED_NAMES"
-ccdlflags="-Wl,-rpath,$shrpdir"
-cccdlflags="-fPIC"
+cc=${CC-gcc}
+ccflags=${CFLAGS-"-D_XOPEN_SOURCE=700 -D_SYSV -D_VOS_EXTENDED_NAMES -D_FILE_OFFSET_BITS=64"}
# Make command.
-make="/system/gnu_library/bin/gmake"
+make=${MAKE-"/system/gnu_library/bin/gmake"}
# indented to not put it into config.sh
- _make="/system/gnu_library/bin/gmake"
+ _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
@@ -27,7 +25,7 @@ EOF
exit 1
fi
-# Always X86
+# Architecture name always X86
archname=`uname -m`
# Executable suffix.
@@ -43,35 +41,25 @@ glibpth="$loclibpth"
# Include library paths
locincpth=""
-usrinc="/system/include_library"
+usrinc=${USRINC-"/system/include_library"}
# Where to install perl5.
-prefix=/system/ported/perl5
+prefix=/system/ported
# Linker is gcc.
-ld="gcc"
-lddlflags="-shared"
-
-# Shared libraries!
-so="so"
-
-# Build libperl.so
-useshrplib="true"
+ld=${CC-"gcc"}
# Don't use nm. The VOS copy of libc.a is empty.
usenm="n"
-# Make the default be no large file support.
-uselargefiles="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 have (or need) a pager, but perl needs one.
-pager="/system/gnu_library/bin/cat.pm"
+# 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.
@@ -89,3 +77,27 @@ 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"