package/openssh: fix build for powerpc64le

Fixes:
https://autobuild.buildroot.org/results/ee9/ee9329461cc36650416013216cac15820ceb7174/
https://gitlab.com/buildroot.org/buildroot/-/work_items/79

packet.c: In function 'ssh_packet_log_type':
packet.c:1219:1: sorry, unimplemented: argument 'used' is not supported
 for '-fzero-call-used-regs' on this target

Upstream bug report: https://bugzilla.mindrot.org/show_bug.cgi?id=3673

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Julien Olivain <ju.o@free.fr>
(cherry picked from commit a44b18837d)
[Thomas: point to 2025.02 autobuild failure, and use the fix in the
issue comment that work on 9.9]
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
Bernd Kuhls
2026-07-18 10:58:06 +02:00
committed by Thomas Perale
parent dd8481e767
commit 21053fd508

View File

@@ -56,6 +56,10 @@ define OPENSSH_PERMISSIONS
/var/empty d 755 root root - - - - -
endef
ifeq ($(BR2_powerpc64le),y)
OPENSSH_CONF_OPTS += --with-cflags-after="-fzero-call-used-regs=skip"
endif
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_110934),y)
OPENSSH_CONF_OPTS += --without-hardening
endif