home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / aix / 11743 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.9 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!sarah!cook!psinntp!psinntp!rd821!a040130
  2. From: a040130@rd821.UUCP (Rick Esposito)
  3. Newsgroups: comp.unix.aix
  4. Subject: Re: compiling AIX3.1 binaries on AIX3.2
  5. Message-ID: <147@rd821.UUCP>
  6. Date: 18 Nov 92 13:38:30 GMT
  7. References: <16Nov.185942.21605@quay.ie>
  8. Reply-To: a040130@rd821.gleason.com
  9. Organization: The Gleason Works, Rochester New York
  10. Lines: 44
  11. X-Newsreader: Tin 1.1 PL4
  12.  
  13. chris@quay.ie (Christopher Davey) writes:
  14. : How does one do this ? Is there a checklist anywhere ?
  15. : Help !!
  16. : Chris
  17.  
  18. To create a program that will run under 3.1.5,
  19. add the following to the link statement of your make file immediately after
  20. cc:
  21.     cc -F:cc315 ......
  22.  
  23. To compile programs using AIX 3.2 that will run under AIX 3.1.5,
  24. I did the following:
  25. 1. Created a directory /usr/local/lib/aix315 that contains:
  26.     /lib/*.a
  27.     /usr/lib/*.a
  28.     /lib/crt0.o from AIX 3.1.5.
  29. 2. Added a stanza to the /etc/xlc.cfg file:
  30. * standard c compiler aliased as cc
  31. cc315:     use        = DEFLT
  32.         crt        = /usr/local/lib/aix315/crt0.o
  33.         mcrt       = /usr/local/lib/aix315/mcrt0.o
  34.         gcrt       = /usr/local/lib/aix315/gcrt0.o
  35.         libraries  = -lc
  36.         proflibs   = -L/lib/profiled,-L/usr/lib/profiled
  37.         options    = -brename:.__itrunc\,.itrunc,-L/usr/local/lib/aix315,
  38.             -H512,-T512,-qlanglvl=extended,-qnoro
  39.   This looks for the standard files in /usr/local/lib/aix315 instead
  40. of /lib and adds  -brename:.__itrunc,.itrunc and -L/usr/local/lib/aix315
  41. to the options statement.
  42.  
  43. Adding the following to the link statement of a make file immediately after
  44. cc:
  45.     cc -F:cc315 ......
  46.        ---------
  47. tells the linker to use the files and options specified in stanza 
  48. cc315 of /etc/xlc.cfg.
  49.  
  50. Rick.
  51. -- 
  52. Rick Esposito - R&D        a040130@rd821.gleason.com
  53. The Gleason Works        Compuserve: 73427,2414
  54. 1000 University Ave.        Voice: (716) 473-1000x3261
  55. Rochester NY 14692        FAX: (716) 461-4348
  56.