Skip to content

Commit

Permalink
mkl: Replace @rpath/libiomp5.dylib with @loader_path/libiomp5.dylib i…
Browse files Browse the repository at this point in the history
…n lib/libmkl_intel_thread.dylib

Fixes: ContinuumIO/anaconda-issues#6423
  and: JuliaPy/PyPlot.jl#315
  • Loading branch information
mingwandroid committed Oct 13, 2017
1 parent feb5c57 commit 91c5d09
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion intel_repack/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% set version='2018.0.0' %}
{% set buildnum='4' %}
{% set dstbuildnum='5' %}
{% set mkl_include_buildnum='2' %}
{% set openmp_buildnum='7' %}

Expand All @@ -8,7 +9,7 @@ package:
version: {{ version }}

build:
number: {{ buildnum }}
number: {{ dstbuildnum }}
binary_relocation: false
detect_binary_files_with_prefix: false

Expand Down
11 changes: 8 additions & 3 deletions intel_repack/repack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ fi

rm -rf $PREFIX/info

if [[ `uname` == Darwin && -d $SRC_DIR/$PKG_NAME/lib ]]; then
# Strip off support for PPC - saves about 100 MB
python $RECIPE_DIR/deuniversalize.py --ignore-wrong-arch $SRC_DIR/$PKG_NAME/lib/* $PREFIX/lib
if [[ $(uname) == Darwin && -d $SRC_DIR/$PKG_NAME/lib ]]; then
# Strip off support for PPC - saves about 100 MB
python $RECIPE_DIR/deuniversalize.py --ignore-wrong-arch $SRC_DIR/$PKG_NAME/lib/* $PREFIX/lib
if [[ -f ${PREFIX}/lib/libmkl_intel_thread.dylib ]]; then
# See: https://github.com/ContinuumIO/anaconda-issues/issues/6423
# and: https://github.com/JuliaPy/PyPlot.jl/issues/315
install_name_tool -change @rpath/libiomp5.dylib @loader_path/libiomp5.dylib ${PREFIX}/lib/libmkl_intel_thread.dylib
fi
fi

0 comments on commit 91c5d09

Please sign in to comment.