From be0db52b07548a94e6478a2dd33400d5ea89c0af Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Filipovi=C4=8D?= Date: Thu, 26 May 2011 14:00:33 +0000 Subject: [PATCH] with post-install (valtri's version) --- org.glite.lb.client/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/org.glite.lb.client/Makefile b/org.glite.lb.client/Makefile index 11d49f6..82aaf5d 100644 --- a/org.glite.lb.client/Makefile +++ b/org.glite.lb.client/Makefile @@ -399,5 +399,16 @@ clean: check_version: ${CHECK_VERSION} ${stagedir}${prefix}/include/glite/lb/common_version.h +post-install: + for file in `ls -1 ${PREFIX}${prefix}/${libdir}/*.so.*`; do \ + if test -h $$file; then continue; fi; \ + orpath=`chrpath -l $$file 2>/dev/null`; \ + if test $$? = 0 ; then \ + rpath=`echo $$orpath | sed 's:.*RPATH=::' | sed "s:${PREFIX}:${sysroot}:g" | tr ':' '\n' | grep -v '^$$' | tr '\n' ':' | sed 's/:$$//'`; \ + if test "$$orpath" = "$$rpath"; then continue; fi; \ + chrpath -r $$rpath $$file; \ + chrpath -d $$file; \ + fi; \ + done -.PHONY: default all compile examples check stage install clean check_version link +.PHONY: default all compile examples check stage install clean check_version link post-install -- 1.8.2.3