From 6c9bbda796c3528f018bd4590238aeebcbe81feb Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Wed, 5 Jan 2022 23:54:33 -0500 Subject: [PATCH] gnu: FreedroidRPG: Fix build with GCC 10? * gnu/packages/games.scm (freedroidrpg)[arguments]: Add -fcommon to CFLAGS. --- gnu/packages/games.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index bfd566aac0..e4ddcf8aea 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -1365,7 +1365,8 @@ (define-public freedroidrpg (string-append "CFLAGS=" "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL " "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL " - "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL") + "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL" + "-fcommon") ; Fix build with GCC 10 "--enable-opengl") ;; FIXME: the test suite fails with the following error output: ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \ -- 2.34.0