[Bug 275969] converters/libiconv: Unable to build without including /usr/local/include/iconv.h

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 28 Dec 2023 06:15:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275969

--- Comment #6 from Gleb Popov <arrowd@FreeBSD.org> ---
> However, the problem remains: I'm including /usr/local/include/iconv.h and linking with -lc which also provides an iconv implementation. With the LIBICONV_PLUG the libiconv functions don't get the "lib" prefix.

> I'm guessing libiconv and libc try to provide compatible headers, but it seems a bit fragile to depend on that.

What's the problem with this approach? This is exactly what Ports framework do.
By passing -DLIBICONV_PLUG you make it indifferent for the software you're
compiling whether 3rd party libiconv is installed or not.

-- 
You are receiving this mail because:
You are the assignee for the bug.