correctly set this pascal flag for future compatibility
authorkoda
Sat, 04 Jan 2014 02:00:12 +0100
changeset 9944 9cd98ce10d65
parent 9943 5c9f5abad9c2
child 9945 c4ae96531f8c
correctly set this pascal flag for future compatibility
cmake_modules/CMakePascalInformation.cmake
--- a/cmake_modules/CMakePascalInformation.cmake	Sat Jan 04 01:56:22 2014 +0100
+++ b/cmake_modules/CMakePascalInformation.cmake	Sat Jan 04 02:00:12 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