This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Support for automatic linking via pragma
On Fri, Mar 4, 2011 at 5:44 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> Not necessarily. ÂUnlike DSO, object files don't have ABI/API
> information. You may not link foo.o compiled with glibc 2.5/libbar
> 1.3 against glibc 2.13/libbar 1.9
It's (at first) intended for apps that just use:
-lboost_program_options-mt
-lboost_system-mt
-lctemplate
-lmysqlclient
-lpthread
-lxbt
-lz
With this feature, they don't need to pass this info automatically.
> You may not link foo.o compiled with glibc 2.5/libbar
> 1.3 against glibc 2.13/libbar 1.9
True, but that's a different problem. One that might benefit from auto linking.
Is the ABI/API info encoded in the lib name?
--
Olaf