|
Boost-Build : |
Subject: Re: [Boost-build] .rc files cause problem for darwin toolset
From: Ian Emmons (iemmons_at_[hidden])
Date: 2009-03-02 08:56:11
Volodya,
Yes, thanks very much, that does the trick. One minor note: When I
build universal binaries (architecture=combined address-model=32_64),
each link causes three warnings of this form:
ld warning: in .../darwin-4.0.1/debug/address-model-32_64/architecture-
combined/threading-multi/Version_res.o, file is not of required
architecture
It appears that Version_res.o contains only one of the four
architectures. It's just a minor annoyance, but I thought I'd mention
it.
Thanks again,
Ian
On Mar 2, 2009, at 1:49 AM, Vladimir Prus wrote:
Ian Emmons wrote:
> ========== bjam output ==========
>
> iemmons-l3:BBTestCase iemmons$ bjam -q toolset=darwin-4.0.1
> variant=release
> /Users/iemmons/dev/boost_1_38_0/tools/build/v2/tools/rc.jam:62: in
> rc.compile.resource
> warning: rulename compile.resource.$(rc-type) expands to empty string
Ian,
Does the following patch help?
Thanks,
Volodya
Index: rc.jam
===================================================================
--- rc.jam (revision 51259)
+++ rc.jam (working copy)
@@ -59,6 +59,7 @@
rule compile.resource ( target : sources * : properties * )
{
local rc-type = [ on $(target) return $(.RC_TYPE) ] ;
+ rc-type ?= null ;
compile.resource.$(rc-type) $(target) : $(sources[1]) ;
}
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