gnu: gmnisrv: Use #:make-flags, and cross-compile.

gnu/packages/web.scm (gmnisrv)[arguments]<#:phases>{set-variables}: Move
'CC=' to...
<#:make-flags>: ...here, and support cross-compilation with (cc-for-target).

Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>
This commit is contained in:
Sarah Morgensen 2021-07-25 13:39:53 -07:00 committed by Arun Isaac
parent 274fcfb251
commit 3344f70e49
No known key found for this signature in database
GPG key ID: 2E25EE8B61802BB3

View file

@ -7984,12 +7984,7 @@ (define-public gmnisrv
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:tests? #f ; no check target `(#:tests? #f ; no check target
#:phases #:make-flags (list (string-append "CC=" ,(cc-for-target)))))
(modify-phases %standard-phases
(add-before 'configure 'set-variables
(lambda _
(setenv "CC" "gcc")
#t)))))
(inputs (inputs
`(("openssl" ,openssl))) `(("openssl" ,openssl)))
(native-inputs (native-inputs