Ticket #46943: Portfile-powerpc-ticket-46943.diff

File Portfile-powerpc-ticket-46943.diff, 738 bytes (added by neverpanic (Clemens Lang), 10 years ago)

Patch against the Portfile that attempts to fix this issue

  • Portfile

     
    4848                            --disable-silent-rules
    4949    configure.cppflags-append \
    5050                            -I${python.prefix}/include
     51    platform darwin {
     52        # PowerPC builds fail because -mdynamic_no_pic is the default, #46943
     53        if {([variant_isset universal] && (ppc in ${universal_archs} || ppc64 in ${universal_archs}))
     54            || (![variant_isset universal] && [string match ppc* ${build_arch}])} {
     55                configure.cflags-append -fPIC
     56        }
     57    }
    5158
    5259    build.cmd               [portbuild::build_getmaketype]
    5360    build.target