Ignore:
Timestamp:
Sep 1, 2013, 6:31:43 AM (6 years ago)
Author:
larryv@…
Message:

Use configure.cxx_stdlib when -stdlib is involved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/cctools/Portfile

    r110308 r110522  
    118118build.target    all
    119119
     120if {[info exists configure.cxx_stdlib] && ${configure.cxx_stdlib} ne {}} {
     121    set stdlib_flag " -stdlib=${configure.cxx_stdlib}"
     122} else {
     123    set stdlib_flag {}
     124}
     125
    120126pre-build {
    121127    build.args-append \
     
    124130        BUILD_DYLIBS=NO \
    125131        CC="${configure.cc} ${configure.cflags}" \
    126         CXX="${configure.cxx} ${configure.cxxflags}" \
     132        CXX="${configure.cxx} ${configure.cxxflags}${stdlib_flag}" \
    127133        RC_ARCHS="[get_canonical_archs]" \
    128134        SDK="-I${prefix}/include"
     
    154160        BUILD_DYLIBS=NO \
    155161        CC="${configure.cc} ${configure.cflags}" \
    156         CXX="${configure.cxx} ${configure.cxxflags}" \
     162        CXX="${configure.cxx} ${configure.cxxflags}${stdlib_flag}" \
    157163        RC_ARCHS="[get_canonical_archs]" \
    158164        SDK="-I${prefix}/include"
Note: See TracChangeset for help on using the changeset viewer.