This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
MAking Solaris malloc() the default
[perl5.git] / hints / isc.sh
CommitLineData
a0d0e21e
LW
1# isc.sh
2# Interactive Unix Versions 3 and 4.
3# Compile perl entirely in posix mode.
4# Andy Dougherty doughera@lafcol.lafayette.edu
5# Wed Oct 5 15:57:37 EDT 1994
6#
7# Use Configure -Dcc=gcc to use gcc
8#
5d94fbed
AD
9
10# We don't want to explicitly mention -lc (since we're using POSIX mode.)
11# We also don't want -lx (the Xenix compatability libraries.) The only
12# thing that it seems to pick up is chsize(), which has been reported to
13# not work. chsize() can also be implemented via fcntl() in perl (if you
14# define -D_SYSV3). We'll leave in -lPW since it's harmless. Some
15# extension might eventually need it for alloca, though perl doesn't use
16# it.
17
18set `echo X "$libswanted "| sed -e 's/ c / /' -e 's/ x / /'`
a0d0e21e
LW
19shift
20libswanted="$*"
5d94fbed 21
a0d0e21e
LW
22case "$cc" in
23*gcc*) ccflags="$ccflags -posix"
24 ldflags="$ldflags -posix"
25 ;;
26*) ccflags="$ccflags -Xp -D_POSIX_SOURCE"
27 ldflags="$ldflags -Xp"
28 ;;
29esac
5d94fbed 30
13826f2c
CS
31# getsockname() and getpeername() return 256 for no good reason
32ccflags="$ccflags -DBOGUS_GETNAME_RETURN=256"
33
ed969818
W
34# rename(2) can't rename long filenames
35d_rename=undef
36
a696a92a
JH
37# for ext/IPC/SysV/SysV.xs
38ccflags="$ccflags -DPERL_ISC"
39
5d94fbed
AD
40# You can also include -D_SYSV3 to pick up "traditionally visible"
41# symbols hidden by name-space pollution rules. This raises some
42# compilation "redefinition" warnings, but they appear harmless.
43# ccflags="$ccflags -D_SYSV3"
44