Boost logo

Boost-Build :

From: Alo Sarv (alo17_at_[hidden])
Date: 2005-07-30 11:11:03


Vladimir Prus wrote:

> If anybody knows of some other thing that must be addressed for M11 -- like
> toolsets not working, or regressions with respect to M10 -- please let me
> know.

Since I upgraded from BBv1 to BBv2 very recently, I discovered some
missing features in gcc toolkit that were present in v1, but lacking in
v2. Here's the patch against cvs HEAD for some of those. I was unable to
find patch submission guidelines on the site, so it's standard unidiff
with 2-line context. Hope it's correct.

Alo

 --------------020803040804010207040708 Content-Type: text/plain;
name="bbv2-gcc-win.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="bbv2-gcc-win.patch"

? tools/build/jam_src/bin.ntx86
? tools/build/jam_src/bootstrap
? tools/build/jam_src/vc70.pdb
Index: tools/build/v2/tools/gcc.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/v2/tools/gcc.jam,v
retrieving revision 1.53
diff -b -u -2 -r1.53 gcc.jam
--- tools/build/v2/tools/gcc.jam 15 Jun 2005 12:24:06 -0000 1.53
+++ tools/build/v2/tools/gcc.jam 30 Jul 2005 15:54:03 -0000
@@ -216,4 +216,22 @@
flags gcc.link OPTIONS <runtime-link>static : -static ;

+if [ os.name ] = NT || [ os.name ] = CYGWIN {
+ # Shared libraries linking options; the --enable-runtime-pseudo-reloc
+ # might be a bit questionable, but seems needed in some cases during shared
+ # libraries linkage (causes problems with imports if not specified).
+ flags gcc.link OPTIONS <link>shared
+ : -Wl,--export-all
+ -Wl,--enable-auto-image-base
+ -Wl,--exclude-symbols,_bss_end__:_bss_start__:_data_end__:_data_start__
+ -Wl,--enable-runtime-pseudo-reloc ;
+
+ # GUI applications must specify this in order to avoid bringing up console
+ # window on startup
+ flags gcc.link OPTIONS <user-interface>gui : -Wl,--subsystem,windows ;
+
+ # creates .lib file when creating dlls
+ IMPLIB_COMMAND = -Wl,--out-implib, ;
+}
+
# Now, the vendor specific flags
# The parameter linker can be either gnu or sun
 --------------020803040804010207040708--


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