Boost logo

Boost-Build :

From: Andre Hentz (ahentz_at_[hidden])
Date: 2004-10-18 20:01:28


Vladimir Prus wrote:
>
> Milestone 10 of Boost.Build V2 is getting closer. The preview packages are
> available at:
>
> http://zigzag.lvk.cs.msu.su/~ghost/Milestone_10_preview/
>
> and in the CVS (the Milestone_10 tag). I'd very appreciate testing of this
> version. I'd welcome both results of the automated tests (see
> http://boost-consulting.com/boost/tools/build/v2/test/test_system.html), and
> running this version on your projects.
>

I believe the following is necessary for the gcc link flags to be
properly inherited. Two test still fail after this change (see below.
I'll look into them if I can find some time).

--- darwin.jam Mon Oct 18 17:48:09 2004
+++ darwin.oring.jam Mon Oct 18 17:48:00 2004
@@ -15,7 +15,12 @@
toolset.register darwin ;
import gcc ;
toolset.inherit-generators darwin : gcc ;
+# we can't pass -s to ld unless we also pass -static
+# so we removed -s completly from OPTIONS and add it
+# to ST_OPTIONS
+toolset.inherit-flags darwin : gcc : <debug-symbols>off ;
toolset.inherit-rules darwin : gcc ;
+flags darwin.link ST_OPTIONS <debug-symbols>off : -s ;

# No additional initialization should be necessary
rule init ( version ? : command * : options * )
@@ -24,13 +29,6 @@
local command = [ common.get-invocation-command darwin : g++ :
$(command) ] ;

common.handle-options darwin : $(condition) : $(command) :
$(options) ;
-
- gcc.init-link-flags gnu ;
- # we can't pass -s to ld unless we also pass -static
- # so we removed -s completly from OPTIONS and add it
- # to ST_OPTIONS
- toolset.inherit-flags darwin : gcc : <debug-symbols>off ;
- flags darwin.link ST_OPTIONS <debug-symbols>off : -s ;
}

# Darwin has a different shared library suffix

====================== Test Results =================

searched_lib FAILS:
-------- all changes caused by last build command ----------
Added files : ['lib/bin/darwin/debug/libtest_lib.dylib',
'lib/bin/darwin/debug/test_lib.o']
Removed files : []
Modified files: []
Touched files : []
STDOUT ============
ld: warning can't open dynamic library:
bin/darwin/debug/libtest_lib.dylib (checking for undefined symbols may
be affected) (No such file or directory, errno = 2)
ld: Undefined symbols:
foo() referenced from helper expected to be defined in
bin/darwin/debug/libtest_lib.dylib
...failed updating 1 target...

STDERR ============

END ===============

library_order FAILS:
STDOUT ============
ld: Undefined symbols:
b()
ld: Undefined symbols:
c()
...skipped <pbin/darwin/debug>main for lack of
<pbin/darwin/debug>liba.dylib...
...failed updating 2 targets...

STDERR ============
/usr/bin/libtool: internal link edit command failed
/usr/bin/libtool: internal link edit command failed

END ===============

 


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