Boost logo

Boost Users :

From: Derrick Hathaway (d.hathaway_at_[hidden])
Date: 2008-01-28 13:10:46


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



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net