Ticket #49867: patch-py-bob-io-base.diff

File patch-py-bob-io-base.diff, 998 bytes (added by dbevans (David B. Evans), 9 years ago)

Patch to fix py-bob-io-base

  • Portfile

     
    7272          # blacklist older compilers that don't support -std=c++0x (10.6 and earlier)       
    7373       compiler.blacklist  *gcc* {clang < 300}
    7474
     75    # fix for libstdc++ build failures with boost 1.59 and (indirect) inclusion of boost/thread/detail/move.hpp
     76    # libstdc++ supports rvalue references but defining BOOST_NO_CXX11_RVALUE_REFERENCES disables the
     77    # inclusion of <type_traits> which is not libstdc++ compatible
    7578
     79    platform darwin {
     80        if {${configure.cxx_stdlib} eq "libstdc++"} {
     81            build.env-append \
     82                CPPFLAGS=-DBOOST_NO_CXX11_RVALUE_REFERENCES
     83            destroot.env-append \
     84                CPPFLAGS=-DBOOST_NO_CXX11_RVALUE_REFERENCES
     85        }
     86    }
     87
    7688    #WORKAROUND TO AVOID CONFLICTS WITH ANOTHER BOB PACKAGES (DELETING THE ROOT __INIT_FILES)
    7789
    7890    post-destroot {