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]

Re: a question about -l option


ali hagigat <hagigatali@gmail.com> writes:

> For -lrt besides librt.a and librt.so other files are searched too,
> like librt.so.1?  If there is librt.so and lirt.so.1 together which
> one is selected?

The linker will not find librt.so.1 given -lrt.

> If we want to link librt.so.7 the following is OK?
> -l:librt.so.7

Sure.

Ian


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