This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: stupid ld tricks


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]