home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!apple!TIS.COM!mjr
- From: mjr@TIS.COM (Marcus J Ranum)
- Newsgroups: comp.unix.ultrix
- Subject: Re: Any way to do a faster link??
- Message-ID: <9301110245.AA08082@TIS.COM>
- Date: 11 Jan 93 02:45:24 GMT
- References: <1iqm8b$807@agate.berkeley.edu>
- Sender: daemon@Apple.COM
- Reply-To: mjr@TIS.COM
- Organization: Trusted Information Systems, Inc.
- Lines: 19
-
- >I need to know if there is any way to speed up compile time on a DECstation
- >5000? The bottle neck seems to be the linking portion of the compile cycle,
- >especially, if some of the libraries are coming off of NFS.
-
- NFS is the problem here. One gross kludge would be to have your
- makefile maintain *copies* of the library on local disk. I have done this
- in the past, and while it's *ugly* it works. I.e.:
-
-
- LIBS= libX.a
- foo: foo.o $(LIBS)
- cc -o foo foo.o $(LIBS)
-
- libX.a: /usr/lib/libX.a
- cp /usr/lib/libX.a $@
- ranlib $@
-
- clean:
- rm -f foo foo.o $(LIBS)
-