X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fisc.sh;h=cdfe91c605af861a1ac3c1f46d535c55256190a5;hb=24c02676028cab802cb347f1affa7f30893cac1c;hp=7c18380f54a67716c99145d8dde7b377682c4fc2;hpb=a0d0e21ea6ea90a22318550944fe6cb09ae10cda;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/isc.sh b/hints/isc.sh index 7c18380..cdfe91c 100644 --- a/hints/isc.sh +++ b/hints/isc.sh @@ -6,9 +6,19 @@ # # Use Configure -Dcc=gcc to use gcc # -set `echo X "$libswanted "| sed -e 's/ c / /'` + +# 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" @@ -17,5 +27,18 @@ case "$cc" in ldflags="$ldflags -Xp" ;; esac -# Pick up dbm.h in -ccflags="$ccflags -I/usr/include/rpcsvc" + +# getsockname() and getpeername() return 256 for no good reason +ccflags="$ccflags -DBOGUS_GETNAME_RETURN=256" + +# rename(2) can't rename long filenames +d_rename=undef + +# for ext/IPC/SysV/SysV.xs +ccflags="$ccflags -DPERL_ISC" + +# 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" +