blob: 66608decef0037b1ad99dd1ba1c1bb686c9c57b1 (
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
|
# Hints for the CX/UX 7.1 operating system running on Harris NightHawk
# machines. written by Tom.Horsley@mail.hcsc.com
#
# This config is setup for dynamic linking and the Harris C compiler.
# Check some things and print warnings if this isn't going to work...
#
case ${SDE_TARGET:-ELF} in
[Cc][Oo][Ff][Ff]|[Oo][Cc][Ss]) echo ''
echo ''
echo WARNING: Do not build perl 5 with the SDE_TARGET set to
echo generate coff object - perl 5 must be built in the ELF
echo environment.
echo ''
echo '';;
[Ee][Ll][Ff]) : ;;
*) echo ''
echo 'Unknown SDE_TARGET value: '$SDE_TARGET
echo '';;
esac
case `uname -r` in
[789]*) : ;;
*) echo ''
echo ''
echo WARNING: Perl 5 requires shared library support, it cannot
echo be built on releases of CX/UX prior to 7.0 with this hints
echo file. You\'ll have to do a separate port for the statically
echo linked COFF environment.
echo ''
echo '';;
esac
# Internally at Harris, we use a source management tool which winds up
# giving us read-only copies of source trees that are mostly symbolic links.
# That upsets the perl build process when it tries to edit opcode.h and
# embed.h or touch perly.c or perly.h, so turn those files into "real" files
# when Configure runs. (If you already have "real" source files, this won't
# do anything).
#
if [ -x /usr/local/mkreal ]
then
for i in '.' '..'
do
for j in embed.h opcode.h perly.h perly.c
do
if [ -h $i/$j ]
then
( cd $i ; /usr/local/mkreal $j ; chmod 666 $j )
fi
done
done
fi
# We DO NOT want -lmalloc
#
libswanted=`echo ' '$libswanted' ' | sed -e 's/ malloc / /'`
# Stick the low-level elf library path in first.
#
glibpth="/usr/sde/elf/usr/lib $glibpth"
# Need to use Harris cc for most of these options to be meaningful (if you
# want to get this to work with gcc, you're on your own :-). Passing
# -Bexport to the linker when linking perl is important because it leaves
# the interpreter internal symbols visible to the shared libs that will be
# loaded on demand (and will try to reference those symbols). The -u
# option to drag 'sigaction' into the perl main program is to make sure
# it gets defined for the posix shared library (for some reason sigaction
# is static, rather than being defined in libc.so.1).
#
cc='/bin/cc -Xa'
cccdlflags='-Zelf -Zpic'
ccdlflags='-Zelf -Zlink=dynamic -Wl,-Bexport -u sigaction'
lddlflags='-Zlink=so'
# Configure imagines that it sees a pw_quota field, but it is really in a
# different structure than the one it thinks it is looking at.
d_pwquota='undef'
# Configure sometimes finds what it believes to be ndbm header files on the
# system and imagines that we have the NDBM library, but we really don't.
# There is something there that once resembled ndbm, but it is purely
# for internal use in some tool and has been hacked beyond recognition
# (or even function :-)
#
i_ndbm='undef'
# Don't use the perl malloc
#
d_mymalloc='undef'
usemymalloc='n'
cat <<'EOM'
You will get a failure on lib/posix.t test 16 because ungetc() on
stdin does not work if no characters have been read from stdin.
If you type a character at the terminal where you are running
the tests, you can fool it into thinking it worked.
EOM
|