Ticket #31957: makeicns.diff

File makeicns.diff, 962 bytes (added by ryandesign (Ryan Carsten Schmidt), 13 years ago)

proposed patch

  • Portfile

     
    3333variant universal {
    3434}
    3535
    36 if {[variant_isset universal]} {
    37     set archflags ${configure.universal_cflags}
    38 } else {
    39     set archflags ${configure.cc_archflags}
    40 }
    41 
    4236build.env-append    CC=${configure.cc} \
    4337                    CXX=${configure.cxx} \
    44                     CFLAGS="${configure.cflags} ${archflags}" \
    45                     CXXFLAGS="${configure.cxxflags} ${archflags}" \
    46                     LDFLAGS="[join ${configure.ldflags}] ${archflags}"
     38                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
     39                    CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
     40                    LDFLAGS="[join ${configure.ldflags}] [get_canonical_archflags ld]"
    4741
    4842if {${configure.sdkroot} != ""} {
    4943    build.env-append SDK=${configure.sdkroot}