Shared libraries on Alpha

Richard Henderson rth@cygnus.com
Wed Feb 23 16:21:00 GMT 2000


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~


More information about the Gcc mailing list