[Boost-bugs] [Boost C++ Libraries] #2545: building boost on Solaris with gcc

Subject: [Boost-bugs] [Boost C++ Libraries] #2545: building boost on Solaris with gcc
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-11-28 13:22:23


#2545: building boost on Solaris with gcc
--------------------------------------------+-------------------------------
 Reporter: joern.clausen_at_[hidden] | Type: Patches
   Status: new | Milestone: To Be Determined
Component: Building Boost | Version: Boost 1.37.0
 Severity: Problem | Keywords:
--------------------------------------------+-------------------------------
 The following change is necessary to compile boost on Solaris using the
 native linker. It will probably not work when using GNU binutils, but as
 the other OSes are checked unconditionally as well, I think this is only
 fair.

 --- ./tools/build/v2/tools/gcc.jam 2008/11/28 13:08:45 1.1
 +++ ./tools/build/v2/tools/gcc.jam 2008/11/28 13:10:20
 @@ -149,6 +149,10 @@
          {
              linker = aix ;
          }
 + else if [ os.name ] = SOLARIS
 + {
 + linker = sun ;
 + }
          else
          {
              linker = gnu ;


 I find this comment from sun.jam a little bit confusing:

 # On gcc, there are separate options for dll path at runtime and
 # link time. On Solaris, there's only one: -R, so we have to use
 # it, even though it's bad idea.

 Even more as a few lines below, both -L and -R are used, which clearly
 demonstrates that separate library paths for compile time and run time are
 supported.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2545>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC