Re: Specify how to link with libiconv

Chris Sutcliffe <[email protected]>
Newsgroups gmane.comp.gnu.make.windows
Message-ID <[email protected]>
On 21/01/2011 7:29 PM, Eli Zaretskii wrote:
>> Date: Fri, 21 Jan 2011 17:01:45 -0500
>> From: Chris Sutcliffe<[email protected]>
>>
>> How do I go about specifying how to link with libiconv?  By default
>> configure is looking for libiconv.a, but I'd like to link to
>> libiconv.dll.a (the shared library for MinGW).
> This is not really a Make question, it's a Binutils question.
>
> If you have libiconv.dll.a somewhere where ld will look, then just
> using -liconv in the link command line should DTRT.  Since ld looks
> for libiconv.dll.a _before_ libiconv.a, the presence of the latter
> shouldn't matter.

Typically I would say that's the case, except make's configure is 
resolving to the actual library:

checking how to link with libiconv... /mingw/lib/libiconv.a

>> I've tried setting the LIBICONV environment variable prior to
>> running configure but it seems to be ignored.
> Something like "LDFLAGS=-liconv ./configure" should do the trick, I
> think.

I tried this approach with the same results.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.