summary refs log tree commit diff
path: root/gnu/packages/arcan.scm
diff options
context:
space:
mode:
authorGuillaume Le Vaillant <glv@posteo.net>2021-09-16 10:15:34 +0200
committerGuillaume Le Vaillant <glv@posteo.net>2021-09-16 10:15:34 +0200
commitc9f7770eeec3a7b493dcbf45c96a4528f2635604 (patch)
treeb5c7edadc6396995a3c450a2e2d3840b069bec0a /gnu/packages/arcan.scm
parentb3ee04cde70579f84061342d62d86fcc2093dd6c (diff)
downloadguix-c9f7770eeec3a7b493dcbf45c96a4528f2635604.tar.gz
gnu: arcan: Fix build.
* gnu/packages/arcan.scm (arcan, arcan-sdl)[arguments]: Pass '-fcommon' to
  CFLAGS.
Diffstat (limited to 'gnu/packages/arcan.scm')
-rw-r--r--gnu/packages/arcan.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/packages/arcan.scm b/gnu/packages/arcan.scm
index 0ab157b525..721cd7fd70 100644
--- a/gnu/packages/arcan.scm
+++ b/gnu/packages/arcan.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2019 L  p R n  d n <guix@lprndn.info>
+;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -65,7 +66,8 @@
                  (base32 "1pd0avlzc2rig1hd37zbhc7r2s6fjzdhshfg9l9cfzibl7caclyw"))))
       (build-system cmake-build-system)
       (arguments
-       `(#:configure-flags '("-DVIDEO_PLATFORM=egl-dri" "-DBUILTIN_LUA=off"
+       `(#:configure-flags '("-DCMAKE_C_FLAGS=-fcommon"
+                             "-DVIDEO_PLATFORM=egl-dri" "-DBUILTIN_LUA=off"
                              "-DSTATIC_OPENAL=off""-DENABLE_LWA=on"
                              "-DSTATIC_SQLITE3=off" "-DSTATIC_FREETYPE=off"
                              "-DSHMIF_TUI_ACCEL=on")
@@ -176,7 +178,8 @@ engine programmable using Lua.")
      `(,@(ensure-keyword-arguments
           (package-arguments arcan)
           '(#:configure-flags
-            '("-DVIDEO_PLATFORM=sdl" "-DBUILTIN_LUA=off"
+            '("-DCMAKE_C_FLAGS=-fcommon"
+              "-DVIDEO_PLATFORM=sdl" "-DBUILTIN_LUA=off"
               "-DSTATIC_OPENAL=off" "-DDISABLE_JIT=off"
               "-DENABLE_LWA=on" "-DSTATIC_SQLITE3=off"
               "-DSTATIC_FREETYPE=off" "-DSHMIF_TUI_ACCEL=on")))))