correctly set this pascal flag for future compatibility 0.9.20
authorkoda
Sat, 04 Jan 2014 02:18:57 +0100
branch0.9.20
changeset 9922 58dee07f7552
parent 9919 145323067f05
child 9924 aa7e7544ae41
correctly set this pascal flag for future compatibility
cmake_modules/CMakePascalInformation.cmake
--- a/cmake_modules/CMakePascalInformation.cmake	Sat Jan 04 02:18:57 2014 +0100
+++ b/cmake_modules/CMakePascalInformation.cmake	Sat Jan 04 02:18:57 2014 +0100
@@ -51,7 +51,7 @@
 
 if(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG)
 #-Wl,-rpath,
-    set(CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG "-k-rpath")
+    set(CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG "-k-rpath -k")
 endif(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG)
 
 if(NOT CMAKE_SHARED_LIBRARY_RUNTIME_Pascal_FLAG_SEP)
@@ -60,7 +60,7 @@
 
 if(NOT CMAKE_SHARED_LIBRARY_RPATH_LINK_Pascal_FLAG)
 #-Wl,-rpath-link,
-    set(CMAKE_SHARED_LIBRARY_RPATH_LINK_Pascal_FLAG "-k-rpath-link")
+    set(CMAKE_SHARED_LIBRARY_RPATH_LINK_Pascal_FLAG "-k-rpath-link -k")
 endif(NOT CMAKE_SHARED_LIBRARY_RPATH_LINK_Pascal_FLAG)
 
 # for most systems a module is the same as a shared library