diff --git a/patches/packages/hack/0021-openssh-fix-compilation-for-powerpc.patch b/patches/packages/hack/0021-openssh-fix-compilation-for-powerpc.patch new file mode 100644 index 0000000000000000000000000000000000000000..8d1a49b1971300e27666a872aa5a7b29c6511acb --- /dev/null +++ b/patches/packages/hack/0021-openssh-fix-compilation-for-powerpc.patch @@ -0,0 +1,29 @@ +From 67a64fba62453100c94cafdc8513446fa42fc240 Mon Sep 17 00:00:00 2001 +From: Richard Muzik <richard.muzik@nic.cz> +Date: Thu, 11 Jul 2024 14:16:18 +0200 +Subject: [PATCH] openssh: fix compilation for powerpc + +--- + net/openssh/Makefile | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/net/openssh/Makefile b/net/openssh/Makefile +index ac580fc71..436d79f85 100644 +--- a/net/openssh/Makefile ++++ b/net/openssh/Makefile +@@ -180,7 +180,11 @@ CONFIGURE_ARGS += \ + --with-stackprotect \ + --with$(if $(CONFIG_OPENSSL_ENGINE),,out)-ssl-engine \ + --with$(if $(CONFIG_OPENSSH_LIBFIDO2),,out)-security-key-builtin \ +- --with-cflags-after=-fzero-call-used-regs=skip ++ ++ifneq ($(ARCH),powerpc) ++CONFIGURE_ARGS += \ ++ --with-cflags-after=-fzero-call-used-regs=skip ++endif + + ifeq ($(BUILD_VARIANT),with-pam) + CONFIGURE_ARGS += \ +-- +2.45.2 +