Ticket #50344: numpy_Tiger_fix.diff

File numpy_Tiger_fix.diff, 1.3 KB (added by michaelld (Michael Dickens), 8 years ago)
  • Portfile

     
    88
    99github.setup            numpy numpy 1.10.4 v
    1010name                    py-numpy
     11
    1112categories-append       math
    1213license                 BSD
    1314platforms               darwin
     
    129130                            BLAS=/usr/lib
    130131    }
    131132
     133    platform darwin 8 {
     134        patchfiles-append patch-Tiger-without-dflcn-header.diff
     135    }
     136
    132137    post-patch {
    133138        reinplace "s|@@MPORTS_PYTHON@@|${python.bin}|" \
    134139            ${worksrcpath}/numpy/f2py/setup.py
  • files/patch-Tiger-without-dflcn-header.diff

     
     1--- numpy/_build_utils/src/apple_sgemv_fix.c.orig
     2+++ numpy/_build_utils/src/apple_sgemv_fix.c
     3@@ -94,7 +94,7 @@
     4      * AVX and the OS version is Mavericks */
     5     AVX_and_10_9 = AVX && MAVERICKS;
     6     /* load vecLib */
     7-    veclib = dlopen(VECLIB_FILE, RTLD_LOCAL | RTLD_FIRST);
     8+    veclib = dlopen(VECLIB_FILE, 0x4 | 0x100);
     9     if (!veclib) {
     10         veclib = NULL;
     11         snprintf(errormsg, sizeof(errormsg),