depot/third_party/nixpkgs/pkgs/development/libraries/libxsmm/rpath.patch
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

13 lines
553 B
Diff

diff --git a/Makefile.inc b/Makefile.inc
index 424d7b2e4..87934fee0 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -918,7 +918,7 @@ ifneq (Darwin,$(UNAME))
XLNKVERBOSE := --verbose
linkopt = $(if $1,$(XLNKOPT)$(if $2,$1=$(call quote,$2),$1))
abslibrpath = $(strip $(if $(findstring .$(ILIBEXT),$1)$(wildcard $1/), \
- $(call linkopt,--rpath,$(call qxdir,$(call qapath,$1)))))
+ $(call linkopt,--rpath,$(PREFIX)/lib)))
XGROUP_BEGIN := $(call linkopt,--start-group)
XGROUP_END := $(call linkopt,--end-group)
ifneq (0,$(ASNEEDED))