This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: stupid ld tricks
- To: "H . J . Lu" <hjl at lucon dot org>
- Subject: Re: stupid ld tricks
- From: "Michael Sterrett -Mr. Bones.-" <msterret at coat dot com>
- Date: Wed, 21 Jun 2000 19:24:59 -0400 (EDT)
- cc: binutils at sourceware dot cygnus dot com
- Organization: Burlington Coat Factory
On Wed, 21 Jun 2000, H . J . Lu wrote:
> Never call ld directly unless you know what you are doing. Use
> gcc and -Wl,-Bstatic -la -Wl,-Bdynamic:
>
> # gcc -o app app.o -Wl,-Bstatic -la -Wl,-Bdynamic -lb
>
> H.J.
Wow, that was fast. Five minute turn around on questions, I'm impressed.
I guess I don't know what I'm doing so I won't call ld ever again. ;-)
The -Wl stuff was what I was missing. Thanks a lot, it's all working now.
Later,
Michael Sterrett
-Mr. Bones.-
michael.sterrett@coat.com