Boost logo

Boost-Build :

Subject: Re: [Boost-build] building program_options for iPhone
From: Gevorg Voskanyan (v_gevorg_at_[hidden])
Date: 2011-02-06 11:35:37


James Gregurich wrote:
>Hi.
>
>I'm attempting to build boost 1.45 for iOS. I have it configured with
>link=static. I'm running into a problem with parsers.cpp in program_options due
>
>to the following line:
>
>#if defined(__APPLE__) && defined(__DYNAMIC__)
>#include <crt_externs.h>
>#define environ (*_NSGetEnviron())
>
>crt_externs.h does not exist in the iOS sdk. I THINK I can switch of the
>__DYNAMIC__ macro by passing in -static. Is there an entry I can put into
>user-config.jam that instructs bjam to pass in an extra flag when compiling
>parsers.cpp? I've been going through the documentation, but I'm not exactly
>sure what I'm looking for. I'd appreciate some guidance.
>
>thanks,
>James

You could try passing cflags=-static to bjam, or have <compileflags>-static in
the requirements when configuring toolset in user-config.jam

In any case I'd suggest creating a ticket at svn.boost.org so that
program_options can be patched to build under iOS out of the box.

HTH,
Gevorg


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk