summaryrefslogtreecommitdiff
path: root/hints/isc.sh
blob: df745a9b2520b1bc0674d869f1d9ff7bcf6c1bad (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
#  isc.sh
#  Interactive Unix Versions 3 and 4. 
#  Compile perl entirely in posix mode. 
#  Andy Dougherty		doughera@lafcol.lafayette.edu
#  Wed Oct  5 15:57:37 EDT 1994
#
# Use Configure -Dcc=gcc to use gcc
#

# We don't want to explicitly mention -lc (since we're using POSIX mode.)
# We also don't want -lx (the Xenix compatability libraries.) The only
# thing that it seems to pick up is chsize(), which has been reported to
# not work.  chsize() can also be implemented via fcntl() in perl (if you
# define -D_SYSV3).  We'll leave in -lPW since it's harmless.  Some
# extension might eventually need it for alloca, though perl doesn't use
# it. 

set `echo X "$libswanted "| sed -e 's/ c / /' -e 's/ x / /'`
shift
libswanted="$*"

case "$cc" in
*gcc*)	ccflags="$ccflags -posix"
	ldflags="$ldflags -posix"
	;;
*)	ccflags="$ccflags -Xp -D_POSIX_SOURCE"
	ldflags="$ldflags -Xp"
    	;;
esac

# You can also include -D_SYSV3 to pick up "traditionally visible"
# symbols hidden by name-space pollution rules.  This raises some
# compilation "redefinition" warnings, but they appear harmless.
# ccflags="$ccflags -D_SYSV3"