Changeset 129881


Ignore:
Timestamp:
Dec 22, 2014, 9:16:32 AM (5 years ago)
Author:
ryandesign@…
Message:

gr1c: go back to using ld -r instead of $(CC) -r because $(CC) -r crashes with Xcode versions less than 6 (#41653); use muniversal portgroup because ld doesn't understand multiple -arch flags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/gr1c/Portfile

    r129880 r129881  
    33
    44PortSystem          1.0
     5PortGroup           muniversal 1.0
    56
    67name                gr1c
     
    3334depends_lib         port:libcudd
    3435
    35 use_configure       no
    36 
    37 variant universal {}
     36configure.cmd       true
    3837
    3938# Build succeeds but test fails
    4039use_parallel_build  no
    4140
    42 build.args          CC="${configure.cc} [get_canonical_archflags cc]" \
    43                     LD="${configure.cc} [get_canonical_archflags ld] -r" \
    44                     prefix="${prefix}"
     41build.args          prefix="${prefix}"
     42
     43foreach arch ${configure.universal_archs} {
     44    lappend merger_build_args(${arch}) \
     45                    CC='${configure.cc} -arch ${arch}' \
     46                    LD='ld -r -arch ${arch}'
     47}
     48
     49if {![variant_isset universal] && [info exists merger_build_args(${build_arch})]} {
     50    build.args-append $merger_build_args(${build_arch})
     51}
    4552
    4653test.run            yes
Note: See TracChangeset for help on using the changeset viewer.