Changeset 88512


Ignore:
Timestamp:
Jan 3, 2012, 11:44:34 PM (6 years ago)
Author:
cal@…
Message:

mod_perl2: Fix build with clang (code assumes GNU89), check for perl +shared +threads, closes #32200

Location:
trunk/dports/www/mod_perl2
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/www/mod_perl2/Portfile

    r86323 r88512  
    3232worksrcdir                      mod_perl-${version}
    3333
     34if {${configure.compiler} == "clang"} {
     35    patchfiles-append clang-compatibility_src-modules-perl-modperl_common_util.h.patch
     36}
     37
     38pre-configure {
     39    set perl5bin "${prefix}/bin/perl5"
     40    if ![exec ${perl5bin} -MConfig -e "print \$Config{'useshrplib'} || 0"] {
     41        ui_error "${name} requires perl5 to be installed with the +shared variant."
     42        return -code error "perl5 must be +shared"
     43    }
     44    if ![exec ${perl5bin} -MConfig -e "print \$Config{'usethreads'} || 0"] {
     45        ui_error "${name} requires perl5 to be installed with the +threads variant."
     46        return -code error "perl5 must be +threads"
     47    }
     48}
     49
    3450configure {
    3551        set APXS ${prefix}/apache2/bin/apxs
Note: See TracChangeset for help on using the changeset viewer.