I've been struggling to find a way to get bjam to add -enable-auto-import to all it's link stages when building boost with mingw.
Can anyone help with this ?
Building boost with bjam: 1. Create a user-config.jam 2. Add the following line (refer http://www.boost.org/boost-build2/doc/html/bbv2/overview/configuration.html for details): using msvc : : : <linkflags>-enable-auto-import ; 3. Provide your config file (with valid path if you keep it in a different folder) to bjam as following: bjam --user-config=user-config.jam
The key is "linkflags" in your user-config.jam file and its correct location. All those colons (:) are required and note the space before the last semi-colon.
Excellent, thanks, that finally gets mingw4.5 working for me! Cheers, John.