Add GHC_DYNAMIC cmake option - allows building dynamically-linked haskell object files and executables (needed for some distributions)
--- a/CMakeLists.txt Fri Sep 23 02:21:21 2022 +0300
+++ b/CMakeLists.txt Fri Sep 23 02:45:49 2022 +0300
@@ -165,6 +165,10 @@
endif()
+if(GHC_DYNAMIC)
+ list(APPEND haskell_flags "-dynamic")
+endif()
+
#get BUILD_TYPE and enable/disable optimisation
message(STATUS "Using ${CMAKE_BUILD_TYPE} configuration")
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
--- a/INSTALL.md Fri Sep 23 02:21:21 2022 +0300
+++ b/INSTALL.md Fri Sep 23 02:45:49 2022 +0300
@@ -118,6 +118,7 @@
- `CMAKE_INSTALL_PREFIX`: Installation directory
- `NOSERVER`: Set to `ON` to *not* build the server
- `NOVIDEOREC`: Set to `ON` to *not* build the video recorder
+- `GHC_DYNAMIC`: Set to `ON` to build dynamically-linked haskell object files and executables (needed for some distributions)
### Step 2: Make