Static linking with ld

jsalter at slo.awdpa.ibm.com jsalter at slo.awdpa.ibm.com
Wed Jan 9 05:26:49 AEST 1991


In article <9764 at adobe.UUCP> jensen at 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 at adobe.com

jim/jsalter  IBM AWD, Palo Alto  T465/(415)855-4427   VNET: JSALTER at AUSVMQ
Internet: jsalter at slo.awdpa.ibm.com         UUCP: ..!uunet!ibmsupt!jsalter 
  PS/2 it, or DIE!  :-)  The ramblings above have nothing to do with Big Blue.



More information about the Comp.unix.aix mailing list