gnu: hedgewars: Fix build with shared libraries.
authorTimothy Sample <samplet@ngyro.com>
Wed, 2 Sep 2020 17:44:12 +0000 (13:44 -0400)
committerTimothy Sample <samplet@ngyro.com>
Wed, 2 Sep 2020 17:44:12 +0000 (13:44 -0400)
Fixes: <https://bugs.gnu.org/43112>.

* gnu/packages/games.scm (hedgewars)[arguments]: Set "haskell_flags"
in #:configure-flags to enable dynamic linking.

gnu/packages/games.scm

index 479ae52..1cd0df0 100644 (file)
@@ -8848,7 +8848,8 @@ play with up to four players simultaneously.  It has network support.")
      ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
      ;; Compiler, which we haven't packaged yet.  With the flag below, we use
      ;; a Pascal to C translator and Clang instead.
-     `(#:configure-flags (list "-DBUILD_ENGINE_C=ON")
+     `(#:configure-flags (list "-DBUILD_ENGINE_C=ON"
+                               "-Dhaskell_flags=-dynamic;-fPIC")
        #:phases
        (modify-phases %standard-phases
          (replace 'check