This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: using ar to make a shared lib
- From: Daniel Jacobowitz <drow at false dot org>
- To: Christopher Bottaro <cbottaro at geocenter dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 17 Feb 2004 13:50:12 -0500
- Subject: Re: using ar to make a shared lib
- References: <840F2DD0-6179-11D8-98AE-000A95C63C86@geocenter.com>
On Tue, Feb 17, 2004 at 12:45:54PM -0600, Christopher Bottaro wrote:
> hello,
> is it possible to make a shared lib (.so file) with ar? i compile all
> my sources with gcc and the -fPIC option, but instead of linking them
> together with gcc and the -shared linker flag, i just wanna use ar...is
> this possible?
>
> example:
> gcc -c s1.c -fPIC
> gcc -c s2.c -fPIC
> gcc -c s3.c -fPIC
> ar crv s.so s1.o s2.o s3.o
>
> thanks for the help.
No. Why don't you try to explain why you don't want to use gcc
-shared?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer