Description: On Debian, we do not want an rpath for standard lib dir
Author: Vincent Danjean <Vincent.Danjean@ens-lyon.org>
Forwarded: not-needed

--- a/src/configure.in
+++ b/src/configure.in
@@ -1045,7 +1045,7 @@ if test "$shlib_tools" = "yes"; then
    fi
    LINKLIB='$(SHLIB)'
    # Set rpath and runpath to find libpfm.so and libpapi.so if not specified via LD_LIBRARY_PATH. The search path at runtime can be overriden by LD_LIBRARY_PATH.
-   LDFLAGS="$LDFLAGS -Wl,-rpath=$PWD/libpfm4/lib:$PWD,--enable-new-dtags"
+   LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
 elif test "$shlib_tools" = "no"; then
    if test "$static_lib" != "yes"; then
       AC_MSG_ERROR([Building shared but specified static linking for tests and utilities])
@@ -1515,7 +1515,7 @@ PAPISOVER='$(PAPIVER).$(PAPIREV)'
 VLIB='libpapi.so.$(PAPISOVER)'
 OMPCFLGS=-fopenmp
 CC_R='$(CC) -pthread'
-CC_SHR='$(CC) -fPIC -DPIC -shared -Wl,-soname -Wl,$(VLIB) -Xlinker "-rpath" -Xlinker "$(LIBDIR)"'
+CC_SHR='$(CC) -fPIC -DPIC -shared -Wl,-soname -Wl,$(VLIB)'
 if test "$CC_COMMON_NAME" = "gcc"; then
 	if test "$bitmode" = "32"; then
 		BITFLAGS=-m32
