From 38e4ba37e6804facffbe0c0a23c022d0e12f79df Mon Sep 17 00:00:00 2001 From: Maxime Devos Date: Sat, 10 Apr 2021 19:32:14 +0200 Subject: [PATCH 14/16] gnu: miniupnpc: Use 'cc-for-target'. * gnu/packages/upnp.scm (miniupnpc)[arguments]<#:make-flags>: Use 'cc-for-target'. --- gnu/packages/upnp.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/upnp.scm b/gnu/packages/upnp.scm index 2743ba456d..79e47671ab 100644 --- a/gnu/packages/upnp.scm +++ b/gnu/packages/upnp.scm @@ -61,11 +61,11 @@ ;; The build system does not use a configure script but depends on ;; `make'. Hence we should pass parameters to `make' instead and remove ;; the configure phase. - '(#:make-flags + `(#:make-flags (list (string-append "SH=" (assoc-ref %build-inputs "bash") "/bin/sh") (string-append "INSTALLPREFIX=" (assoc-ref %outputs "out")) - "CC=gcc" + ,(string-append "CC=" (cc-for-target)) ;; Allow executables to find libminiupnpc.so. (string-append "LDFLAGS=-Wl,-rpath=" -- 2.31.1