Ignore:
Timestamp:
Sep 19, 2014, 2:41:26 AM (5 years ago)
Author:
ryandesign@…
Message:

colorer: only use -Wno-error=address-of-temporary on clang; older compilers have never heard of this option and complain loudly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/colorer/Portfile

    r125503 r125506  
    5252configure.args  --srcdir=.
    5353
     54set extra_cflags "[get_canonical_archflags cc]"
     55if {[string match *clang* ${configure.compiler}]} {
     56    append extra_cflags " -Wno-error=address-of-temporary"
     57}
     58
    5459build.target colorer
    5560# Yes, this build system uses "CPP" for the C compiler and "LINK" for the C++ compiler.
    5661build.args          ARCHFLAGS="[get_canonical_archflags]" \
    5762                    CPP=${configure.cc} \
    58                     CPPFLAGS_CUSTOM="[get_canonical_archflags] -Wno-error=address-of-temporary" \
     63                    CPPFLAGS_CUSTOM="${extra_cflags}" \
    5964                    FLAGS= \
    6065                    LIBINC="/usr/lib/${configure.cxx_stdlib}.dylib" \
Note: See TracChangeset for help on using the changeset viewer.