Patch from Andreas.
[p5sagit/p5-mst-13.2.git] / hints / irix_5.sh
1 # irix_5.sh
2 # Last modified Tue Jan  2 14:52:36 EST 1996
3 # Apparently, there's a stdio bug that can lead to memory
4 # corruption using perl's malloc, but not SGI's malloc.
5 usemymalloc='n'
6
7 ld=ld
8 i_time='define'
9
10 case "$cc" in
11 *gcc) ccflags="$ccflags -D_BSD_TYPES" ;;
12 *) ccflags="$ccflags -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 3000" ;;
13 esac
14
15 lddlflags="-shared"
16 # For some reason we don't want -lsocket -lnsl or -ldl.  Can anyone
17 # contribute an explanation?
18 set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ nsl / /' -e 's/ dl / /'`
19 shift
20 libswanted="$*"