sparklemotion/nokogiri — pull request #1139 by lamont-granquist (2014-07-28 20:00:52+00:00)
Title: add /usr/local/include to search path

If iconv is installed in /usr/local/include but there is no pkg-config
information for the package, then extconf will fail to find a path to
the header files and will not be able to provide it to the libxml2
build.

I don't know a better way of solving this problem, since otherwise the
idea is that you want to use the default mkmf CFLAGS and be able to
tell which include directory the default compile is finding the header
files in. We'd need to do something like expand the $CFLAGS (hard enough
with mkmf) and then pop off the -I's and add them back one at a time
until you found where iconv.h was actually hiding.