From 00a1c6118b2d64b867c8e640c295462bcccfc7c9 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Fri, 8 Sep 2017 15:03:55 +0200 Subject: Add macOS note --- build/linux/Makefile.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build') diff --git a/build/linux/Makefile.in b/build/linux/Makefile.in index 1c0c56a..c83e9f0 100644 --- a/build/linux/Makefile.in +++ b/build/linux/Makefile.in @@ -308,7 +308,9 @@ mex: $(MATLAB_MEX) ifeq ($(install_type),module) ifeq ($(macos),yes) @# tell macOS dynamic loader to look in mex directory for libastra.0.dylib - install_name_tool -change `otool -DX .libs/$(SONAME)` @loader_path/$(SONAME) $@ + @# CHECKME: some versions of otool return a two-line output for otool -DX? + @# (xcode 8.2.1 / macos 10.11.6 ?) + install_name_tool -change `otool -DX .libs/$(SONAME) | tail -n 1` @loader_path/$(SONAME) $@ endif endif -- cgit v1.2.3