gnu: moarvm: Fix compiling with gcc 10.

* gnu/packages/perl6.scm (moarvm)[arguments]: Add '-fcommon' to CFLAGS.
This commit is contained in:
Guillaume Le Vaillant 2021-11-22 13:44:19 +01:00
parent 83bd1b70cc
commit 18ab016be1
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -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