gnu: nginx: Fix cross-compilation.

* gnu/packages/web.scm (nginx)[arguments]: Use CC-FOR-TARGET.
This commit is contained in:
Tobias Geerinckx-Rice 2021-05-06 13:24:53 +02:00
parent e0e0178f8e
commit 079ec3f3ee
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -420,7 +420,7 @@ (define-public nginx
(string-append "--crossbuild="
system ":" release ":" machine)))
configure-flags)))
(setenv "CC" "gcc")
(setenv "CC" ,(cc-for-target))
;; Fix ./configure test for #include <libxml/parser.h>.
(setenv "CFLAGS" ; CPPFLAGS is not respected
(string-append "-I" (assoc-ref inputs "libxml2")