home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Source / GNU / perl / Perl / hints / solaris_2.sh < prev    next >
Encoding:
Text File  |  1995-02-22  |  1.2 KB  |  40 lines

  1. usevfork=false
  2. d_suidsafe=define
  3. set `echo $glibpth | sed -e 's@/usr/ucblib@@'`
  4. glibpth="$*"
  5. # Remove bad libraries.  -lucb contains incompatible routines.
  6. # -lld doesn't do anything useful.
  7. # -lmalloc can cause a problem with GNU CC & Solaris.  Specifically,
  8. # libmalloc.a may allocate memory that is only 4 byte aligned, but
  9. # GNU CC on the Sparc assumes that doubles are 8 byte aligned.
  10. # Thanks to  Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>
  11. set `echo " $libswanted " | sed -e 's@ ld @ @' -e 's@ malloc @ @' -e 's@ ucb @ @'`
  12. libswanted="$*"
  13.  
  14. # Look for architecture name.  We want to suggest a useful default
  15. # for archlib and also warn about possible -x486 flags needed.
  16. case "$archname" in
  17. '')
  18.     if test -f /usr/bin/arch; then
  19.         archname=`/usr/bin/arch`
  20.         archname="${archname}-${osname}"
  21.     elif test -f /usr/ucb/arch; then
  22.         archname=`/usr/ucb/arch`
  23.         archname="${archname}-${osname}"
  24.     fi
  25.     ;;
  26. esac
  27. case "$archname" in
  28. *86*) echo "For an Intel platform you might need to add -x486 to ccflags" >&4;;
  29. *) ;;
  30. esac
  31.  
  32. case $PATH in
  33. */usr/ucb*:/usr/bin:*) cat <<END
  34. NOTE:  Some people have reported problems with /usr/ucb/cc.  
  35. Remove /usr/ucb from your PATH if you have difficulties.
  36. END
  37. ;;
  38. esac
  39.  
  40.