Ticket #20911: caml-pcre-cc.patch

File caml-pcre-cc.patch, 448 bytes (added by wiml@…, 15 years ago)

set $CC to ocaml's compiler+options

  • Portfile

     
    5050        reinplace "s|##PREFIX##|${prefix}|g" ${worksrcpath}/Makefile.conf
    5151}
    5252
    53 build.env-append    CC=${configure.cc}
     53build.env-append    CC="[exec ${prefix}/bin/ocamlc -config | sed -n {s/^native_c_compiler: //p}]"
    5454
    5555pre-destroot {
    5656        file mkdir "[ocamlfind_destdir]/stublibs"