Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!panews.awdpa.ibm.com!slo.awdpa.ibm.com!jsalter From: jsalter@slo.awdpa.ibm.com Newsgroups: comp.unix.aix Subject: Re: Static linking with ld Keywords: Bstatic linking static Message-ID: <1991Jan8.182649.5736@panews> Date: 8 Jan 91 18:26:49 GMT References: <9764@adobe.UUCP> Sender: news@panews (news id) Reply-To: jsalter@slo.awdpa.ibm.com (Jim Salter) Organization: IBM AWD Development, Palo Alto Lines: 18 In article <9764@adobe.UUCP> jensen@adobe.COM () writes: > ld normally uses dynamic linking, when you build an > executable. This is fine; you save disk space and all > that. However, I need occasionally to move my executable > to other machines, and (for testing purposes) I would like > to be able to link them statically, so the program is self- > contained and moveable. > I have not been able to find an option (like Sun's -Bstatic) > which can do that for me. Look at the -bautoimp/noautoimp and -bimport options for ld. >Freddy Jensen >email: jensen@adobe.com jim/jsalter IBM AWD, Palo Alto T465/(415)855-4427 VNET: JSALTER at AUSVMQ Internet: jsalter@slo.awdpa.ibm.com UUCP: ..!uunet!ibmsupt!jsalter PS/2 it, or DIE! :-) The ramblings above have nothing to do with Big Blue.