This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Support for automatic linking via pragma
- From: Olaf van der Spek <olafvdspek at gmail dot com>
- To: binutils at sourceware dot org
- Date: Fri, 4 Mar 2011 17:29:52 +0100
- Subject: Re: Support for automatic linking via pragma
- References: <AANLkTinAzwzX00cxiPScsW49NeyGWFgeE+m6RSr7Hu7k@mail.gmail.com>
On Mon, Feb 28, 2011 at 7:17 PM, Olaf van der Spek <olafvdspek@gmail.com> wrote:
> Hi,
>
> I've submitted a feature request for automatic linking via pragma:
> http://sourceware.org/bugzilla/show_bug.cgi?id=12485
> What do others think about the idea?
Somebody?
Let me quote the request:
MSVC supports the following pragma, which can be used to automatically link a
library when a header file is included. This is used by for example Boost.
It makes linking with the right lib a lot simpler. No more fiddling
with autoconf to detect the right lib name.
#pragma comment(lib, "requiredLibrary.lib")
Unfortunately, gold doesn't support this. Could you add it?
I assume this needs coordination with gcc.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39437
--
Olaf