Boost logo

Boost-Build :

From: Arjan Knepper (arjan_at_[hidden])
Date: 2007-12-21 07:52:23


Attached the patch.

diff U3wB C:/usr/local/lib/boost_1_34_1/tools/build/v2/tools/dmc.jam C:/usr/local/lib/boost_1_34_1/tools/build/v2.m11/tools/dmc.jam
--- C:/usr/local/lib/boost_1_34_1/tools/build/v2/tools/dmc.jam Sun Sep 30 23:12:48 2007
+++ C:/usr/local/lib/boost_1_34_1/tools/build/v2.m11/tools/dmc.jam Thu Dec 20 15:25:05 2007
@@ -68,12 +68,11 @@
 flags dmc.compile OPTIONS <optimization>space : -o+space ;
 flags dmc.compile OPTIONS <exception-handling>on : -Ae ;
 flags dmc.compile OPTIONS <rtti>on : -Ar ;
-# FIXME:
 # Compiling sources to be linked into a shared lib (dll) the -WD cflag should be used
 # Compiling sources to be linked into a static lib (lib) or executable the -WA cflag should be used
-# But for some reason the -WD cflag is always in use.
-# flags dmc.compile OPTIONS <link>shared : -WD ;
-# flags dmc.compile OPTIONS <link>static : -WA ;
+flags dmc.compile OPTIONS <main-target-type>EXE : -WA ;
+flags dmc.compile OPTIONS <link>static/<main-target-type>LIB : -WA ;
+flags dmc.compile OPTIONS <link>shared/<main-target-type>LIB : -WD ;
 
 # Note that these two options actually imply multithreading support on DMC
 # because there is no single-threaded dynamic runtime library. Specifying


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