home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!sarah!cook!psinntp!psinntp!rd821!a040130
- From: a040130@rd821.UUCP (Rick Esposito)
- Newsgroups: comp.unix.aix
- Subject: Re: compiling AIX3.1 binaries on AIX3.2
- Message-ID: <147@rd821.UUCP>
- Date: 18 Nov 92 13:38:30 GMT
- References: <16Nov.185942.21605@quay.ie>
- Reply-To: a040130@rd821.gleason.com
- Organization: The Gleason Works, Rochester New York
- Lines: 44
- X-Newsreader: Tin 1.1 PL4
-
- chris@quay.ie (Christopher Davey) writes:
- : How does one do this ? Is there a checklist anywhere ?
- : Help !!
- :
- : Chris
-
- To create a program that will run under 3.1.5,
- add the following to the link statement of your make file immediately after
- cc:
- cc -F:cc315 ......
-
- To compile programs using AIX 3.2 that will run under AIX 3.1.5,
- I did the following:
- 1. Created a directory /usr/local/lib/aix315 that contains:
- /lib/*.a
- /usr/lib/*.a
- /lib/crt0.o from AIX 3.1.5.
- 2. Added a stanza to the /etc/xlc.cfg file:
- * standard c compiler aliased as cc
- cc315: use = DEFLT
- crt = /usr/local/lib/aix315/crt0.o
- mcrt = /usr/local/lib/aix315/mcrt0.o
- gcrt = /usr/local/lib/aix315/gcrt0.o
- libraries = -lc
- proflibs = -L/lib/profiled,-L/usr/lib/profiled
- options = -brename:.__itrunc\,.itrunc,-L/usr/local/lib/aix315,
- -H512,-T512,-qlanglvl=extended,-qnoro
- This looks for the standard files in /usr/local/lib/aix315 instead
- of /lib and adds -brename:.__itrunc,.itrunc and -L/usr/local/lib/aix315
- to the options statement.
-
- Adding the following to the link statement of a make file immediately after
- cc:
- cc -F:cc315 ......
- ---------
- tells the linker to use the files and options specified in stanza
- cc315 of /etc/xlc.cfg.
-
- Rick.
- --
- Rick Esposito - R&D a040130@rd821.gleason.com
- The Gleason Works Compuserve: 73427,2414
- 1000 University Ave. Voice: (716) 473-1000x3261
- Rochester NY 14692 FAX: (716) 461-4348
-