Skip to content

Commit

Permalink
OpenBLAS: allow universal build
Browse files Browse the repository at this point in the history
No revbump since port either builds successfully or not at all
  • Loading branch information
MarcusCalhoun-Lopez authored and pmetzger committed Jun 18, 2018
1 parent e59af28 commit 0282767
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions math/OpenBLAS/Portfile
Expand Up @@ -220,6 +220,11 @@ destroot.args "PREFIX=${prefix}"
if {[variant_isset universal]} {
merger-post-destroot {
foreach arch ${universal_archs_to_use} {
if {${arch} ne ${build_arch}} {
# openblas.pc records the processor name, which is different for 32-bit and 64-bit architectures
# see https://github.com/xianyi/OpenBLAS/commit/eb9b021d3890429a41823dc3d90eb0d11c0a6d6d
delete ${destroot}-${arch}${prefix}/lib/pkgconfig/openblas.pc
}
move ${destroot}-${arch}${prefix}/include/cblas.h \
${destroot}-${arch}${prefix}/include/cblas_openblas.h
#Correct library name
Expand Down

0 comments on commit 0282767

Please sign in to comment.