summaryrefslogtreecommitdiff
path: root/geography/opencpn-plugin-weather_routing/patches/patch-cmake_PluginConfigure.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'geography/opencpn-plugin-weather_routing/patches/patch-cmake_PluginConfigure.cmake')
-rw-r--r--geography/opencpn-plugin-weather_routing/patches/patch-cmake_PluginConfigure.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/geography/opencpn-plugin-weather_routing/patches/patch-cmake_PluginConfigure.cmake b/geography/opencpn-plugin-weather_routing/patches/patch-cmake_PluginConfigure.cmake
new file mode 100644
index 00000000000..004b0c89aa6
--- /dev/null
+++ b/geography/opencpn-plugin-weather_routing/patches/patch-cmake_PluginConfigure.cmake
@@ -0,0 +1,19 @@
+$NetBSD: patch-cmake_PluginConfigure.cmake,v 1.1 2016/03/14 11:07:59 bouyer Exp $
+Do not overwrite CMAKE_SHARED_LINKER_FLAGS
+
+--- cmake/PluginConfigure.cmake.orig 2016-02-10 19:43:27.000000000 +0100
++++ cmake/PluginConfigure.cmake 2016-02-10 19:43:46.000000000 +0100
+@@ -43,11 +43,9 @@
+ ENDIF(DEBUG)
+ ENDIF(PROFILING)
+
+- IF(NOT APPLE)
+- SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bsymbolic")
+- ELSE(NOT APPLE)
++ IF(APPLE)
+ SET(CMAKE_SHARED_LINKER_FLAGS "-Wl -undefined dynamic_lookup")
+- ENDIF(NOT APPLE)
++ ENDIF(APPLE)
+
+ ENDIF(NOT MSVC)
+