bjam help modifying a jam file
Hello,I recently inquired about building Boost System which is included with the Boost Asio distribution as a universal binary. I think my question was too comlicated, so let me simplify it. What I _think_ I need to do is add my build environment information into the Boost.System Jamfile. Something like: ### libs/system/build/Jamefile # Boost System Library Build Jamfile # (C) Copyright Beman Dawes 2002, 2006 # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or www.boost.org/LICENSE_1_0.txt) # See library home page at http://www.boost.org/libs/system ##### this section added # Compiler configuration using darwin : 4.0 : g++-4.0 : <cflags>"-isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" <linkflags>"-Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386" ; project boost/system : source-location ../src : usage-requirements # pass these requirement to dependents (i.e. users) <link>shared:<define>BOOST_SYSTEM_DYN_LINK=1 <link>static:<define>BOOST_SYSTEM_STATIC_LINK=1 ; SOURCES = error_code ; lib boost_system : $(SOURCES).cpp : <link>shared:<define>BOOST_SYSTEM_DYN_LINK=1 <link>static:<define>BOOST_SYSTEM_STATIC_LINK=1 ; ## end Jamfile Any Ideas? Is this the wrong place to get help on my non-universal linking problem? Thanks. -Derrick
Derrick Hathaway wrote:
Hello,I recently inquired about building Boost System which is included with the Boost Asio distribution as a universal binary. I think my question was too comlicated, so let me simplify it. What I _think_ I need to do is add my build environment information into the Boost.System Jamfile. Something like: [...] Any Ideas? Is this the wrong place to get help on my non-universal linking problem?
It would probably be easier just to replace your builtin.jam & darwin.jam with the one from SVN that has support for building universal binaries: http://svn.boost.org/trac/boost/browser/trunk/tools/build/v2/tools Or perhaps just replace the entire BBv2 tree with the one from SVN to be safe. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org (msn) - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim,yahoo,skype,efnet,gmail
participants (2)
-
Derrick Hathaway
-
Rene Rivera