This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Shared libraries on Alpha
- To: "K. Holcomb" <kholcomb at cs dot virginia dot edu>
- Subject: Re: Shared libraries on Alpha
- From: Richard Henderson <rth at cygnus dot com>
- Date: Wed, 23 Feb 2000 16:21:33 -0800
- Cc: gcc at gcc dot gnu dot org
- References: <200002231518.KAA20182@mamba.cs.Virginia.EDU>
On Wed, Feb 23, 2000 at 10:18:14AM -0500, K. Holcomb wrote:
> $(SHARED_LIBRARY): $(OBJECTS)
> -ld -o $(SHARED_LIBRARY) -shared $(OBJECTS) $(SO_LIB_FLAGS)
Never ever link the shared library yourself with `ld'. Always use
`gcc -shared', otherwise you can will and did get the wrong results.
r~