title: Build Boost.Locale with iconv for iOS
body: <p>I'm currently trying to build Boost.Locale for iOS, but I can't get it to find the iconv lib (I'm successfully building other parts of Boost for iOS, such as <code>thread</code> or <code>filesystem</code>).</p>
  
  <p>I've tried to let Boost.Build find it by itself, I've tried to set the <code>ICONV_PATH</code> variable to point at the iPhoneOS SDK iconv lib. Checking the Jamfile in Boost.Locale, I stumbled upon that rule:</p>
  
  <pre><code>lib iconv 
    : 
    : &lt;search&gt;$(ICONV_PATH)/lib &lt;link&gt;shared &lt;runtime-link&gt;shared
    :
    : &lt;include&gt;$(ICONV_PATH)/include 
    ;
  </code></pre>
  
  <p>So I thought setting <a href="http://www.boost.org/doc/libs/1_53_0/libs/locale/doc/html/building_boost_locale.html#bb_build_opts" rel="nofollow"><code>-sICONV_PATH</code></a> to <code>/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk/usr</code> would be enough, as this directory contains a <code>lib</code> and an <code>include</code> folder which contain the iconv lib and header, but Boost still fails to find it, and spits:</p>
  
  <pre><code>iconv (libc)             : no
  iconv (separate)         : no
  icu                      : no
  icu (lib64)              : no
  Boost.Locale needs either iconv or ICU library to be built.
  </code></pre>
  
  <p>Note that I always invoke <code>b2</code> with the <code>--reconfigure</code> option, and thus it's not the result of the caching of a previous invocation (which would have a trailing <code>(cached)</code> in the list above.</p>
  
  <p>So, is there a way to correctly point Boost at the iconv implementation present in the iOS SDK? I'd like to avoid building a separate iconv if possible.</p>