[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Favoring static linking at configure time
From: |
Brian Dessent |
Subject: |
Re: Favoring static linking at configure time |
Date: |
Tue, 04 Dec 2007 10:20:40 -0800 |
Benoit Sigoure wrote:
> > Of course there is: -Wl,-Bstatic -lfoo -Wl,-Bdynamic
>
> Hmm I didn't know this. How portable is it? I guess a gccism, but
> is it even portable across versions/ports of GCC?
It doesn't really have anything to do with gcc, it's the linker that
interprets these options. -Wl is the only part gcc sees and that has
been in gcc forever. I'm not sure if other compilers have options for
"pass this to the linker" or not.
-B seems to be fairly portable; all of the following support it:
GNU ld:
<http://sourceware.org/binutils/docs-2.18/ld/Options.html>
Solaris ld:
<http://docs.sun.com/app/docs/doc/819-2239/6n4hsf6n2?l=en&a=view>
FreeBSD ld:
<http://www.freebsd.org/cgi/man.cgi?query=ld&apropos=0&sektion=1&manpath=FreeBSD+6.2-RELEASE&format=html>
NetBSD ld:
<http://netbsd.gw.com/cgi-bin/man-cgi?ld++NetBSD-current>
Irix ld:
<http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi?coll=0650&db=man&fname=/usr/share/catman/u_man/cat1/ld.z>
Looks like Tru64 does not however:
<http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51_HTML/MAN/MAN1/0180____.HTM>
Brian
- Favoring static linking at configure time, Benoit Sigoure, 2007/12/04
- Re: Favoring static linking at configure time, Brian Dessent, 2007/12/04
- Re: Favoring static linking at configure time, Ralf Wildenhues, 2007/12/04
- Re: Favoring static linking at configure time, Benoit Sigoure, 2007/12/16
- Re: Favoring static linking at configure time, Peter Rosin, 2007/12/16
- Re: Favoring static linking at configure time, Benoit Sigoure, 2007/12/16
- Re: Favoring static linking at configure time, Peter Rosin, 2007/12/17
- Re: Favoring static linking at configure time, Benoit Sigoure, 2007/12/19
- Re: Favoring static linking at configure time, Peter O'Gorman, 2007/12/04