Ticket #16744: universal_build_cyrus-sasl2.diff

File universal_build_cyrus-sasl2.diff, 639 bytes (added by illogical1@…, 16 years ago)

cyrus-sasl2 Portfile patch to allow universal compiling

  • security/cyrus-sasl2/Portfile

    old new  
    8585variant sql     { configure.args-append --enable-sql }
    8686
    8787variant static  { configure.args-append --enable-static }
     88
     89variant universal {
     90        configure.cflags-append ${configure.universal_cflags}
     91        configure.args-append ${configure.universal_args}
     92        post-configure {
     93                reinplace "s|^\\(archive_cmds\=\"\\\\\$CC\\)|\\1 \
     94                -Wl,-syslibroot,$sysroot ${configure.universal_ldflags}|g" \
     95                ${worksrcpath}/libtool
     96        }
     97}
     98