File libxsmm-rpath.patch of Package libxsmm

--- ./Makefile.inc.org	2025-06-04 10:43:20.648616319 +0800
+++ Makefile.inc	2025-06-04 10:42:07.624275159 +0800
@@ -958,8 +958,6 @@
   endif
   XLNKVERBOSE := --verbose
   linkopt = $(if $1,$(XLNKOPT)$(if $2,$1=$(call quote,$2),$1))
-  abslibrpath = $(strip $(if $(findstring .$(ILIBEXT),$1)$(if $1,$(wildcard $1/)), \
-    $(call linkopt,--rpath,$(call qxdir,$(call qapath,$1)))))
   XGROUP_BEGIN := $(call linkopt,--start-group)
   XGROUP_END := $(call linkopt,--end-group)
   WHOLE_BEGIN := $(call linkopt,--whole-archive)
@@ -972,8 +970,6 @@
   endif
   XLNKVERBOSE := -t
   linkopt = $(if $1,$(XLNKOPT) $(if $2,$1 $(XLNKOPT) $(call quote,$2),$1))
-  abslibrpath = $(strip $(if $(findstring .$(ILIBEXT),$1)$(if $1,$(wildcard $1/)), \
-    $(call linkopt,-rpath,$(call qxdir,$(call qapath,$1)))))
 endif
 ifneq (0,$(ASNEEDED))
   XLIB_BEGIN ?= $(XLIB_BEGIN_FORCE)
@@ -984,7 +980,7 @@
   -L$(call qxdir,$(call qapath,$1)))))
 
 ifneq (0,$(ABSLIBS))
-  abslibpath = $(strip $(call abslibrpath,$1) $(call absliblpath,$1))
+  abslibpath = $(strip $(call absliblpath,$1))
 else
   abslibpath_force = $(strip $(call abslibrpath,$1))
 endif
@@ -2446,22 +2442,16 @@
   ifneq (,$(LIBGFORTRAN))
     ifneq (0,$(STATIC))
       BLAS_CLDFLAGS += $(XLIB_BEGIN) $(LIBGFORTRAN) $(XLIB_END)
-    else
-      BLAS_LDFLAGS += $(call abslibrpath,$(LIBGFORTRAN))
     endif
   endif
   ifneq (,$(QUADMATH))
     ifneq (0,$(STATIC))
       BLAS_CLDFLAGS += $(XLIB_BEGIN) $(QUADMATH) $(XLIB_END)
-    else
-      BLAS_LDFLAGS += $(call abslibrpath,$(QUADMATH))
     endif
   endif
   ifneq (,$(LIBM))
     ifneq (0,$(STATIC))
       BLAS_CLDFLAGS += $(XLIB_BEGIN) $(LIBM) $(XLIB_END)
-    else
-      BLAS_LDFLAGS += $(call abslibrpath,$(LIBM))
     endif
   endif
 endif
openSUSE Build Service is sponsored by