Boost logo

Boost-Build :

From: Ian Fasel (ianfasel_at_[hidden])
Date: 2004-10-01 13:20:13


Here's my patch to the darwin.jam file. I simply
moved $(OPTIONS) to the end of the linker command.
Now I can use the following syntax:

exe mtest : main.cc
: <cflags>"`Magick++-config --cppflags`"
<linkflags>"`Magick++-config --ldflags --libs`"
;

-Ian

--- Vladimir Prus <ghost_at_[hidden]> wrote:

> Hi Ian,
>
> > exe mtest : main.cc : <cflags>"`Magick++-config
> > --cppflags`"
> > <linkflags>"`Magick++-config
> > --ldflags --libs`"
> > ;
> >
> > This works perfectly on linux using gcc, but
> doesn't
> > work on darwin. On darwin, the compilation of the
> > object file works, but I get these linker errors:
> > ld: Undefined symbols:
> > Magick::Image::display()
> > ... <snip> ...
> > g++ -s `Magick++-config --ldflags --libs`
> -o
> > "bin/darwin/release/mtest"
> > "bin/darwin/release/main.o"
>
> I suppose this is caused by the fact that some
> Magick++ libraries are static
> on Darwin, or by a different linking model.
>
> > I previously worked around this by hacking my copy
> of
> > darwin.jam, but I also don't have the expertise to
> do
> > this really right either, plus I'd rather not have
> to
> > distribute my custom darwin.jam file with my
> package.
> > Maybe someone can give me a better idea. I've
> attached
> > my Jamfile and my main.cc if you'd find that
> useful.
>
> The idea to hack darwin.jam is the right one, ineed.
> Adding <linkflags> to the
> end gives better control, and it's needed for gcc
> jam. If you send a patch
> which moves $(OPTIONS) to the end of linker's
> command line for both link and
> link.dll rules on darwin.jam, this would be very
> appreciated.
>
> - Volodya
>
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~-->
> Make a clean sweep of pop-up ads. Yahoo! Companion
> Toolbar.
> Now with Pop-Up Blocker. Get it for free!
>
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/z3wwlB/TM
>
--------------------------------------------------------------------~->
>
>
>
> Yahoo! Groups Links
>
>
> jamboost-unsubscribe_at_[hidden]
>
>
>
>

__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail --0-1740448743-1096654813=:83465 Content-Type: application/octet-stream; name="darwin_moved_options_to_end.jam"
Content-Transfer-Encoding: base64
Content-Description: darwin_moved_options_to_end.jam
Content-Disposition: attachment; filename="darwin_moved_options_to_end.jam"

[Attachment content not displayed.] --0-1740448743-1096654813=:83465--


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