Ignore:
Timestamp:
Aug 10, 2012, 10:58:58 PM (7 years ago)
Author:
cal@…
Message:

pbzip2: use the right compiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/archivers/pbzip2/Portfile

    r93797 r96468  
    2424                  sha256 86bd6d58e5a6c13cf8c709620ebfe186fca423c2724225bb30431fa7a453aee2
    2525
    26 set CFLAGS        "${configure.ldflags} ${configure.cppflags}"
    27 
    2826configure {
    29   reinplace "s|-pthread -lpthread|${CFLAGS}|" ${worksrcpath}/Makefile
    3027  reinplace "s|man|share/man|" ${worksrcpath}/Makefile
    3128}
     29
     30
     31# yes, the Makefile actually requires $(CC) to compile C++
     32build.args-append CC=${configure.cxx} \
     33                  CFLAGS=\"${configure.cxxflags} [get_canonical_archflags cxx]\" \
     34                  LDFLAGS=\"${configure.ldflags} -lbz2\"
    3235
    3336destroot.destdir  PREFIX=${destroot}${prefix}
     
    4447}
    4548
    46 variant universal {
    47   set CFLAGS "${CFLAGS} ${configure.universal_cflags}"
    48 }
     49variant universal {}
    4950
    5051livecheck.type    regex
Note: See TracChangeset for help on using the changeset viewer.