home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / misc / discuss / 3989 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  2.1 KB

  1. Xref: sparky gnu.misc.discuss:3989 comp.sys.sgi:18061
  2. Newsgroups: gnu.misc.discuss,comp.sys.sgi
  3. Path: sparky!uunet!noc.near.net!ns.draper.com!news.draper.com!MVS.draper.com!SEB1525
  4. From: SEB1525@MVS.draper.com (Steve Bacher)
  5. Subject: makefile for gnu make on SGI
  6. Message-ID: <19921215161735SEB1525@MVS.draper.com>
  7. Sender: MVS NNTP News Reader <NNMVS@MVS.draper.com>
  8. Nntp-Posting-Host: mvs.draper.com
  9. Organization: Draper Laboratory
  10. Date: Tue, 15 Dec 1992 21:17:00 GMT
  11. Lines: 53
  12.  
  13.  
  14. On Tue, 25 Aug 1992 14:45:23 GMT fish@daacdev1.stx.com wrote:
  15.  
  16. >i need the Makefile for GNU make for an SGI platform - i have the
  17. >Makefile but can't figure out what def's and flags to set
  18. >
  19. >i had to set -cckr CFLAG and i def'ed USG and USGr3 (isn't irix USGr4 though?)
  20. >
  21. >and then i ran into a problem with it finding alloca() in glob.c
  22. >and then i found that i need to have -l mld for nlist and then
  23. >i decided i better go to the net fer help.
  24. >
  25. >                        fish
  26. >--
  27. >John R. Vanderpool                INTERNET: fish@daacdev1.stx.com
  28. >NASA/GSFC                         VOX: 301-513-1683
  29. >Hughes/STX Corporation            FAX: 301-513-1608
  30.  
  31. I got it to work by also specifying -Dsparc.
  32.  
  33. It turns out that if sparc is defined, alloca.h is include'd.  Since
  34. the sparc define is referenced only in 2 modules, and only for the
  35. purpose of determining what to do about alloca, I found it safe to
  36. specify -Dsparc in the makefile.  So, here are the changes I used:
  37. while making gnu make 3.62 on an SGI box:
  38.  
  39.  22,24d21
  40.  < # Following added by seb1525
  41.  < prefix = /user1/people/seb1525/make
  42.  <
  43.  44,47c41
  44.  < # *** Following line changed by seb1525 from
  45.  < # defines =
  46.  < # *** to
  47.  < defines = -DUSG -DUSGr3 -Dsparc -cckr
  48.  ---
  49.  > defines =
  50.  72,75c66
  51.  < # *** following line changed by SEB1525 from
  52.  < # LOADLIBES =
  53.  < # *** to
  54.  < LOADLIBES = -lmld -lPW
  55.  ---
  56.  > LOADLIBES =
  57.  
  58. Now all I need is for the sysadmin to create a group "kmem"... :-(
  59.  
  60. Btw, John, how did you come up with -cckr?  I wouldn't have even
  61. tried it if not for you.
  62.  
  63. --
  64. Steve Bacher (Batchman)                 Draper Laboratory
  65. Internet: seb@draper.com                Cambridge, MA, USA
  66.