Changeset 91603


Ignore:
Timestamp:
Apr 6, 2012, 8:49:59 PM (8 years ago)
Author:
jeremyhu@…
Message:

nss: Use the right compiler, and build fix for Tiger

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/nss/Portfile

    r91527 r91603  
    3333                patch-Darwin.mk.diff
    3434
     35platform darwin 8 {
     36    # Tiger's host ld is ancient (cctools based) and won't properly link this project
     37    # Use apple-gcc42 with our ld64 to get it to link
     38    depends_build port:apple-gcc42 port:ld64
     39    depends_skip_archcheck-append apple-gcc42 ld64
     40
     41    configure.compiler apple-gcc-4.2
     42}
     43
    3544# This is all kinds of messed up for universal...
    3645universal_variant no
     
    4958        reinplace "s|= ranlib\$|= /usr/bin/ranlib|" \
    5059        ${worksrcpath}/mozilla/security/coreconf/Darwin.mk
     60        reinplace "s|=gcc|=${configure.cc}|" \
     61        ${worksrcpath}/mozilla/security/nss/Makefile
     62        reinplace "s|=g++|=${configure.cxx}|" \
     63        ${worksrcpath}/mozilla/security/nss/Makefile
    5164}
    5265
     
    5770        set use_64 ""
    5871    }
    59     set make_args "NSPR_LIB_DIR=${prefix}/lib/nspr NSS_USE_SYSTEM_SQLITE=1${use_64}"
     72    set make_args "NSPR_LIB_DIR=${prefix}/lib/nspr NSS_USE_SYSTEM_SQLITE=1${use_64} CC=${configure.cc} CXX=${configure.cxx}"
    6073    system "cd ${worksrcpath} && \
    6174            make -C mozilla/security/coreconf/nsinstall ${make_args} && \
Note: See TracChangeset for help on using the changeset viewer.