Ticket #2597: add-disable-long-double.patch

File add-disable-long-double.patch, 1.5 KB (added by anonymous, 14 years ago)
  • libs/math/build/Jamfile.v2

    Add option --disable-long-double to Boost build procedure.
    Specifying this option essentially allows us to ignore
    a build failure.
    
    c.f. http://lists.boost.org/boost-build/2008/11/20683.php
    
    
    old new  
    5151sph_neumann
    5252;
    5353
    54 compile has_long_double_support.cpp ;
     54if --disable-long-double in [ modules.peek : ARGV ]
     55{
     56    build-long-double = false ;
     57}
     58else
     59{
     60    build-long-double = true ;
     61    compile has_long_double_support.cpp ;
     62}
    5563
    5664lib boost_math_tr1 : ../src/tr1/$(TR1_SOURCES).cpp
    5765    :         
     
    6374             <link>shared:<define>BOOST_MATH_TR1_DYN_LINK=1
    6475   ;
    6576
     77if $(build-long-double) = true
     78{
    6679lib boost_math_tr1l : ../src/tr1/$(TR1_SOURCES)l.cpp
    6780    :         
    6881             <link>shared:<define>BOOST_MATH_TR1_DYN_LINK=1
    6982             <dependency>has_long_double_support
    7083   ;
     84}
    7185
    7286lib boost_math_c99 : ../src/tr1/$(C99_SOURCES).cpp
    7387    :         
     
    7994             <link>shared:<define>BOOST_MATH_TR1_DYN_LINK=1
    8095   ;
    8196
     97if $(build-long-double) = true
     98{
    8299lib boost_math_c99l : ../src/tr1/$(C99_SOURCES)l.cpp
    83100    :         
    84101             <link>shared:<define>BOOST_MATH_TR1_DYN_LINK=1
    85102             <dependency>has_long_double_support
    86103   ;
     104}
    87105
    88106
    89 boost-install boost_math_c99 boost_math_c99f boost_math_c99l boost_math_tr1 boost_math_tr1f boost_math_tr1l ;
     107boost-install boost_math_c99 boost_math_c99f boost_math_tr1 boost_math_tr1f ;
    90108
     109if $(build-long-double) = true
     110{
     111boost-install boost_math_c99l boost_math_tr1l ;
     112}