From 18ab016be1f1846254b054fa937b539487d2bbdb Mon Sep 17 00:00:00 2001 From: Guillaume Le Vaillant Date: Mon, 22 Nov 2021 13:44:19 +0100 Subject: [PATCH] gnu: moarvm: Fix compiling with gcc 10. * gnu/packages/perl6.scm (moarvm)[arguments]: Add '-fcommon' to CFLAGS. --- gnu/packages/perl6.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/perl6.scm b/gnu/packages/perl6.scm index e02dd757e5..4639976961 100644 --- a/gnu/packages/perl6.scm +++ b/gnu/packages/perl6.scm @@ -62,6 +62,7 @@ (define-public moarvm (lambda* (#:key inputs outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out")) (pkg-config (assoc-ref inputs "pkg-config"))) + (setenv "CFLAGS" "-fcommon") (setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib")) (invoke "perl" "Configure.pl" "--prefix" out