gnu: psm: Fix building with GCC 10.

I had to copy all the CFLAGS that were originally defined by the
Makefile as they were otherwise all replaced by '-fcommon'.

* gnu/packages/linux.scm (psm)[arguments]: Pass '-fcommon' to CFLAGS.

Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
This commit is contained in:
Felix Gruber 2021-09-11 08:46:34 +00:00 committed by Guillaume Le Vaillant
parent 856591e2b5
commit abe4bdad80
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -56,6 +56,7 @@
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
;;;
;;; This file is part of GNU Guix.
;;;
@ -7256,6 +7257,11 @@ (define-public psm
(arguments
'(#:make-flags `("PSM_USE_SYS_UUID=1" "CC=gcc" "WERROR="
,(string-append "INSTALL_PREFIX=" %output)
,(string-append "CFLAGS=-Wall -fpic -fPIC -D_GNU_SOURCE"
" -funwind-tables -O3 -g3"
" -DPSM_USE_SYS_UUID"
" -Wno-strict-aliasing -DNVALGRIND"
" -fcommon")
,(string-append "LDFLAGS=-Wl,-rpath=" %output "/lib"))
#:tests? #f
#:phases (modify-phases %standard-phases