This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-help Digest 16 Jul 2007 16:08:08 -0000 Issue 2447
- From: Saurabh Verma <saurabh dot verma at codito dot com>
- To: iitb dot ankit at gmail dot com
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 17 Jul 2007 10:09:10 +0530
- Subject: Re: gcc-help Digest 16 Jul 2007 16:08:08 -0000 Issue 2447
- References: <1184602088.2901.ezmlm@gcc.gnu.org>
- Reply-to: saurabh dot verma at codito dot com
hi ankit,
Try this
$ gcc -g -O2 -Wall -fPIC -c logger.c
$ gcc -g -O2 -Wall -fPIC -c func_lib.c
$ gcc -shared -nostdlib logger.o func_lib.o -o libfuncs.so
No need to give the -static anywhere.
regards
saurabh