summaryrefslogtreecommitdiffstats
path: root/src/polarssl-1-cross-compile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'src/polarssl-1-cross-compile.patch')
-rw-r--r--src/polarssl-1-cross-compile.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/polarssl-1-cross-compile.patch b/src/polarssl-1-cross-compile.patch
new file mode 100644
index 0000000..90478ab
--- /dev/null
+++ b/src/polarssl-1-cross-compile.patch
@@ -0,0 +1,27 @@
+From db48c07b89c049ffda07c7efdfabbd95b1e4213e Mon Sep 17 00:00:00 2001
+From: Andre Heinecke <aheinecke@intevation.de>
+Date: Wed, 21 May 2014 10:20:14 +0000
+Subject: [PATCH] Fix symlink command for cross compiling
+
+ Check for the host system to determine which command
+ should be used to create a symlink
+---
+ tests/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
+index 0460c63..975d497 100644
+--- a/tests/CMakeLists.txt
++++ b/tests/CMakeLists.txt
+@@ -95,7 +95,7 @@ if (NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
+ file(TO_NATIVE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/data_files" target)
+
+ if (NOT EXISTS ${link})
+- if (UNIX)
++ if (CMAKE_HOST_UNIX)
+ set(command ln -s ${target} ${link})
+ else()
+ set(command cmd.exe /c mklink ${link} ${target})
+--
+1.9.1
+