From 8d8272dd474abebed4d98b9b14e525073c6dc436 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sat, 8 Jan 2022 01:01:23 +0100 Subject: gnu: iptables: Fix cross-compilation. * gnu/packages/linux.scm (iptables)[arguments]: Rewrite as G-expression to avoid %OUTPUT when cross-compiling. --- gnu/packages/linux.scm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'gnu/packages/linux.scm') diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 57f6e7489c..f67dd85572 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -2642,9 +2642,13 @@ external rate conversion.") (inputs (list libmnl libnftnl/fixed)) (arguments - '(#:tests? #f ; no test suite - #:configure-flags ; add $libdir to the RUNPATH of executables - (list (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")))) + (list #:tests? #f ; no test suite + #:configure-flags ; add $libdir to the RUNPATH of executables + ;; XXX TODO: Replace with simply #$OUTPUT on core-updates. + #~(list (string-append "LDFLAGS=-Wl,-rpath=" + #$(if (%current-target-system) + #~#$output + #~%output) "/lib")))) (home-page "https://www.netfilter.org/projects/iptables/index.html") (synopsis "Programs to configure Linux IP packet filtering rules") (description -- cgit v1.2.3