[Boost-bugs] [Boost C++ Libraries] #2437: regex library build failure on FreeBSD machines

Subject: [Boost-bugs] [Boost C++ Libraries] #2437: regex library build failure on FreeBSD machines
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-10-26 16:32:21


#2437: regex library build failure on FreeBSD machines
--------------------------------+-------------------------------------------
 Reporter: pisymbol_at_[hidden] | Type: Bugs
   Status: new | Milestone: Boost 1.37.0
Component: Building Boost | Version: Boost Development Trunk
 Severity: Problem | Keywords:
--------------------------------+-------------------------------------------
 In boost/libs/regex/build/Jamfile.v2, if ICU is installed in
 /usr/local/include we fail to set the BOOST_REGEX_ICU_OPTS and
 ICU_SEARCH_OPTS which breaks the build. The above code is assuming gcc
 will look at /usr/local/include and /usr/local/lib as during compilation
 which is NOT true at least on FreeBSD.

 I've suggested to remove the /usr/local/include but it seems this may
 break some Linux builds. Instead the following patch will allow regex lib
 to build properly:

 --- Jamfile.v2 2008-10-26 12:28:06.000000000 -0400
 +++ Jamfile.v2.patch 2008-10-26 12:26:57.000000000 -0400
 @@ -185,6 +185,7 @@
  if $(gHAS_ICU)
  {
     BOOST_REGEX_ICU_OPTS = "<target-
 os>freebsd:<include>/usr/local/include" ;
 + ICU_SEARCH_OPTS = "<target-os>freebsd:<search>/$(ICU_PATH)/lib" ;
     BOOST_REGEX_ICU_OPTS += "<define>BOOST_HAS_ICU=1" ;

     if $(ICU_PATH)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2437>
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