From 80e2760e08deb914dd3f3bcc54f8ee3dd2219fe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Mon, 8 May 2017 15:36:04 +0200 Subject: [PATCH] openssh: fix for gcc-7.1.0 --- srcpkgs/openssh/template | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/srcpkgs/openssh/template b/srcpkgs/openssh/template index 754ae2e396e..e3b8a6de568 100644 --- a/srcpkgs/openssh/template +++ b/srcpkgs/openssh/template @@ -38,6 +38,10 @@ case $XBPS_TARGET_MACHINE in ;; esac +if [ "$XBPS_GCC_VERSION_MAJOR" -ge 7 ]; then + CFLAGS+=" -Wno-format-truncation" +fi + pre_configure() { autoreconf -fi }