Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-09-01 02:47:32


Hi Daniel,

On Wednesday 31 August 2005 23:26, Daniel Schlyder wrote:
> The following install target seems to work fine, but generates a warning.
> If I change SHARED_LIB to STATIC_LIB, or just LIB, I get no warnings, but I
> need the former. Is there any way I can get rid of the warning?

Yes.
1. Tell me what system is this. Is this NT, or (as I suspect) cygwin/mingw.
Try this:

$bjam -f-
ECHO $(OS) ;
<Ctrl-D> or <Ctrl-Z> (depending on shell)

2. Go to E:/libs/boost/tools/build/v2/tools\stage.jam:359
and add
ECHO "NT!" ;
and
ECHO "Not NT!" ;
to both branches of the

if [ $(property-set).get <os> ] = NT

conditional.

3. Try the attached patch, or replace stage.jam with that at:
http://zigzag.cs.msu.su/~ghost/stage.jam

and tell if the problem is still there.

- Volodya

-- 
Vladimir Prus
http://vladimir_prus.blogspot.com
Boost.Build V2: http://boost.org/boost-build2
 --Boundary-00=_VIrFDvRF75lU0i2 Content-Type: text/x-diff;
charset="iso-8859-1";
name="stage.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="stage.diff"
Index: stage.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/v2/tools/stage.jam,v
retrieving revision 1.71
diff -u -r1.71 stage.jam
--- stage.jam	12 Aug 2005 12:53:58 -0000	1.71
+++ stage.jam	1 Sep 2005 07:41:14 -0000
@@ -355,25 +355,33 @@
}
else 
{
- local a = [ $(source).action ] ;
- local cp = [ $(a).properties ] ;
- local current-dll-path = [ $(cp).get <dll-path> ] ;
- local new-dll-path = [ $(property-set).get <dll-path> ] ;
- 
+ local a = [ $(source).action ] ; 
local copied ;
- 
- if $(current-dll-path) != $(new-dll-path)
+ if ! $(a)
{
- # Rpath changed, need to relink.
- copied = [ stage.relink-file 
- $(project) : $(source) : $(property-set) ] ;
- }
- else
- { 
+ # Non-derived file, just copy.
copied = [ stage.copy-file $(project) 
: $(source) : $(property-set) ] ; 
}
- 
+ else
+ { 
+ local cp = [ $(a).properties ] ;
+ local current-dll-path = [ $(cp).get <dll-path> ] ;
+ local new-dll-path = [ $(property-set).get <dll-path> ] ;
+ 
+ if $(current-dll-path) != $(new-dll-path)
+ {
+ # Rpath changed, need to relink.
+ copied = [ stage.relink-file 
+ $(project) : $(source) : $(property-set) ] ;
+ }
+ else
+ { 
+ copied = [ stage.copy-file $(project) 
+ : $(source) : $(property-set) ] ; 
+ }
+ }
+ 
copied = [ virtual-target.register $(copied) ] ;
local result = $(copied) ;
 --Boundary-00=_VIrFDvRF75lU0i2-- 

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