This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

using ar to make a shared lib


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]