I've build ffmpeg static libraries, generated: libavformat.a, libavcodec.a, libavutil.a, ...
in their source directories, all necessary objs (*.o) generated.
I use 'ar' to archive all these objs into one libffmpeg.a.
command: ar rc libffmpeg.a *.o.
I notice that, there are some objs have same name in diff dirs, for example libavformat/4xm.o and libavcodec/4xm.o.
by 'nm libffmpeg.a', it seems both objs are there?
I'm NOT sure.
if obj with same name and Exactly with same function symbols, latter one will be replaced ,right?
by this 'ar' way, will libffmpeg.a work correctly? because there so many symbols I can't test every one.
thanks for help!