Skip to content

Commit 89a7c95

Browse files
committed
add ORIGIN to rpath on Linux/FreeBSD
1 parent 3c18223 commit 89a7c95

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deps/libsuitesparse.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ LIBSUITESPARSE_CMAKE_FLAGS := $(CMAKE_COMMON) \
2424
-DLAPACK_LIBRARIES="$(build_shlibdir)/libblastrampoline.$(SHLIB_EXT)" \
2525
-DLAPACK_LINKER_FLAGS="blastrampoline"
2626

27+
ifneq (,$(findstring $(OS),Linux FreeBSD))
28+
LIBSUITESPARSE_CMAKE_FLAGS += -DCMAKE_INSTALL_RPATH="\$$ORIGIN"
29+
endif
30+
2731
$(SRCCACHE)/SuiteSparse-$(LIBSUITESPARSE_VER).tar.gz: | $(SRCCACHE)
2832
$(JLDOWNLOAD) $@ https://github.com/Wimmerer/SuiteSparse/archive/v$(LIBSUITESPARSE_VER).tar.gz
2933

0 commit comments

Comments
 (0)