Support for automatic linking via pragma
Olaf van der Spek
olafvdspek@gmail.com
Fri Mar 4 17:31:00 GMT 2011
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
More information about the Binutils
mailing list