Skip to content

Commit f12d2e3

Browse files
authored
Add ORIGIN to SuiteSparse rpath on Linux/FreeBSD (#51010)
Fixes #50701 by adding ORIGIN to Cmake RPATH on Linux and FreeBSD
2 parents 3c18223 + 89a7c95 commit f12d2e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deps/libsuitesparse.mk

+4
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)