This is the mail archive of the binutils@sourceware.org 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]

How to use ar to create a library file without external reference to system library files?


Hi,

I use something like the following to create libmy.a. However, if
there is any reference from x1.o or x2.o to other system libraries
that may be at different address across different versions of a OS
(say Mac OS 10.8 vs 10.9). Then, the libmy.a will not work as one
wants it to be. Is there a way to create libmy.a such that not only
everything in x1.o and x2.o, but also anything referenced
(recursively) in by x1.o and x2.o are in libmy.a? Thanks.

ar cr libmy.a x1.o x2.o

-- 
Regards,
Peng


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