Skip to content

Commit

Permalink
Add ORIGIN to SuiteSparse rpath on Linux/FreeBSD (#51010)
Browse files Browse the repository at this point in the history
Fixes #50701 by adding ORIGIN to Cmake RPATH on Linux and FreeBSD
  • Loading branch information
rayegun committed Aug 23, 2023
2 parents 3c18223 + 89a7c95 commit f12d2e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deps/libsuitesparse.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ LIBSUITESPARSE_CMAKE_FLAGS := $(CMAKE_COMMON) \
-DLAPACK_LIBRARIES="$(build_shlibdir)/libblastrampoline.$(SHLIB_EXT)" \
-DLAPACK_LINKER_FLAGS="blastrampoline"

ifneq (,$(findstring $(OS),Linux FreeBSD))
LIBSUITESPARSE_CMAKE_FLAGS += -DCMAKE_INSTALL_RPATH="\$$ORIGIN"
endif

$(SRCCACHE)/SuiteSparse-$(LIBSUITESPARSE_VER).tar.gz: | $(SRCCACHE)
$(JLDOWNLOAD) $@ https://github.com/Wimmerer/SuiteSparse/archive/v$(LIBSUITESPARSE_VER).tar.gz

Expand Down

0 comments on commit f12d2e3

Please sign in to comment.