1diff -ru -x '*~' qtbase_orig/src/Makefile qtbase/src/Makefile
2--- qtbase_orig/src/Makefile 2012-03-03 03:57:47.000000000 +0900
3+++ qtbase/src/Makefile 2014-11-01 23:06:51.383876323 +0900
4@@ -10,6 +10,9 @@
5 -DR_INCLUDES=${R_INCLUDE_DIR} \
6 -DCMAKE_INSTALL_PREFIX=../src; \
7 make install
8+# I could not control RPATH via CMake. HELP WANTED!
9+ patchelf --set-rpath ${CMAKE_LIBRARY_PATH} qtbase.so
10+ find ../inst/local/ -executable -type f -print0 | xargs -0 patchelf --set-rpath ${CMAKE_LIBRARY_PATH}
11
12 clean:
13 rm -rf ../kdebindings-build