# HG changeset patch
# User koda
# Date 1371165881 -7200
# Node ID e704a6a5101a54f5c47a99e652932ad090cab91f
# Parent  035cc97de6aa23309fe69e870c860bed8fd5c45d
this should fix rpath problem

diff -r 035cc97de6aa -r e704a6a5101a cmake_modules/paths.cmake
--- a/cmake_modules/paths.cmake	Fri Jun 14 01:11:22 2013 +0200
+++ b/cmake_modules/paths.cmake	Fri Jun 14 01:24:41 2013 +0200
@@ -63,7 +63,7 @@
     #make sure $ORIGIN is respected
     add_linker_flag("-zorigin")
     #apply RPATH settings to pascal and haskell executables
-    add_flag_append(CMAKE_Pascal_FLAGS "-k-rpath '${CMAKE_INSTALL_RPATH_ESCAPED}'")
+    add_flag_append(CMAKE_Pascal_FLAGS "-k-rpath -k'${CMAKE_INSTALL_RPATH_ESCAPED}'")
     list(APPEND haskell_flags "-optl" "-Wl,-rpath,'${CMAKE_INSTALL_RPATH_ESCAPED}'")
 endif()