Ticket #23040: Portfile-caml-sqlite3.2.diff

File Portfile-caml-sqlite3.2.diff, 577 bytes (added by fh@…, 12 years ago)

Better handling of arch flags as suggested by jmr@…

  • Portfile

    old new  
    2828patchfiles          patch-Makefile.in
    2929
    3030# ocamlmklib does not hanle the -arch flag
    31 if {[info exists build_arch] && ${os.platform} == "darwin"} {
    32   configure.cc_archflags
    33   configure.ld_archflags
    34   configure.pre_args-append --build=${build_arch}-apple-darwin${os.major}
     31if {$build_arch == "i386" || $build_arch == "ppc"} {
     32   configure.ld_archflags -m32
     33} else {
     34   configure.ld_archflags -m64
    3535}
    3636
    3737configure.args      --with-sqlite3=${prefix}