From 93e1586116f39a30ba1fcb67bd839a43533dfaf4 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 10 Dec 2024 09:09:31 +0200 Subject: gnu: libssh: Fix cross-compiling to 32-bit architectures. * gnu/packages/ssh.scm (libssh)[arguments]: When cross-compiling to any 32-bit architecture add a configure-flag to only warn about incompatible pointer types. Change-Id: I3ae71d885bd30a6ba51886824f6dee688538f2f2 --- gnu/packages/ssh.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gnu') diff --git a/gnu/packages/ssh.scm b/gnu/packages/ssh.scm index c04463ca32..5181273407 100644 --- a/gnu/packages/ssh.scm +++ b/gnu/packages/ssh.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2012-2023 Ludovic Courtès ;;; Copyright © 2013, 2014 Andreas Enge ;;; Copyright © 2014, 2015, 2016 Mark H Weaver -;;; Copyright © 2015, 2016, 2018, 2019, 2020, 2021, 2022 Efraim Flashner +;;; Copyright © 2015, 2016, 2018-2022, 2024 Efraim Flashner ;;; Copyright © 2016, 2019 Leo Famulari ;;; Copyright © 2016, 2021, 2023 Nicolas Goaziou ;;; Copyright © 2016 Christine Lemmer-Webber @@ -159,7 +159,8 @@ file names. (outputs '("out" "debug")) (arguments `(#:configure-flags '("-DWITH_GCRYPT=ON" - ,@(if (and (%current-target-system) (target-x86-32?)) + ,@(if (and (%current-target-system) + (not (target-64bit?))) (list (string-append "-DCMAKE_C_FLAGS=-g -O2" " -Wno-incompatible-pointer-types")) -- cgit v1.2.3