[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Specify how to link with libiconv

From: Chris Sutcliffe
Subject: Re: Specify how to link with libiconv
Date: Fri, 21 Jan 2011 20:01:40 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv: Gecko/20101207 Thunderbird/3.1.7

On 21/01/2011 7:29 PM, Eli Zaretskii wrote:
Date: Fri, 21 Jan 2011 17:01:45 -0500
From: Chris Sutcliffe<address@hidden>

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

I tried this approach with the same results.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]