On Debian, we do not want an rpath for standard lib dir
--- a/src/configure.in
+++ b/src/configure.in
@@ -1298,7 +1298,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
