Ticket #40474: Portfile-texlive-bin.diff

File Portfile-texlive-bin.diff, 1.1 KB (added by larryv (Lawrence Velázquez), 11 years ago)
  • Portfile

     
    181181configure.env-append        OBJCXX=${configure.cxx} \
    182182                            OBJCXXFLAGS="${configure.objcflags} [get_canonical_archflags objc]"
    183183
     184set cxx_stdlibflags {}
     185if {[info exists configure.cxx_stdlib] &&
     186    ${configure.cxx_stdlib} ne {} &&
     187    [string match *clang* ${configure.cxx}]
     188} then {
     189    set cxx_stdlibflags -stdlib=${configure.cxx_stdlib}
     190}
     191
    184192# work around bug in texlive makefiles where $OBJC is not recorded
    185193# during configure phase
    186194build.env                   OBJC=${configure.objc} \
    187195                            OBJCFLAGS="${configure.objcflags} [get_canonical_archflags objc]" \
    188196                            OBJCXX=${configure.cxx} \
    189                             OBJCXXFLAGS="${configure.objcflags} [get_canonical_archflags objc]"           
     197                            OBJCXXFLAGS="${configure.objcflags} ${cxx_stdlibflags} [get_canonical_archflags objc]"           
    190198
    191199post-destroot   {
    192200    # Anything that gets installed into texmf-dist will be installed