This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Options '-shared' and '-Wl,-shared'


Hi all,

what is the difference in doing this

g++ -shared -o libfoo.so foo.cpp

And doing this

g++ -Wl,-shared -o libfoo.so foo.cpp

If there is impact if any, then is it in the compiling process or the linking process ?

Thanks very much for the time spared.



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