From 7ee35282ab5680ffecc3954364605418d13f50c9 Mon Sep 17 00:00:00 2001 From: Lei ZHANG Date: Thu, 14 Sep 2017 23:16:38 +0800 Subject: [PATCH] use $ORIGIN for the relative path --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index 3d84c1f..d56ef0c 100644 --- a/makefile +++ b/makefile @@ -29,7 +29,7 @@ INTEL_OMP_DIR:=./lib/${uname} # Default libraries and flags FLAGS:=-DMKL_ILP64 -std=c99 -RPATH:=-rpath,${MKL_LIB_DIR},-rpath,${INTEL_OMP_DIR} +RPATH:=-rpath,${MKL_LIB_DIR},-rpath,'$$ORIGIN/${INTEL_OMP_DIR}' LIBS:=-lmkl_intel_ilp64 -lmkl_core -lmkl_intel_thread -lpthread -lmkl_avx -lmkl_vml_avx -lm # ICC-specific flags