From ff8f6dadea877f98a98912e8c5a19114a4154f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= Date: Fri, 6 Dec 2024 10:39:42 +0100 Subject: [PATCH] bird2: Prevent unaligned access on ARM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Import patch from Freifunk to enable -mno-unaligned-access - see upstream bug report: http://trubka.network.cz/pipermail/bird-users/2024-December/017944.html Signed-off-by: Toke Høiland-Jørgensen --- bird2/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bird2/Makefile b/bird2/Makefile index 26a3ee5e1..9c672c5b9 100644 --- a/bird2/Makefile +++ b/bird2/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=bird2 PKG_VERSION:=2.15.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=bird-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=ftp://bird.network.cz/pub/bird @@ -97,6 +97,10 @@ protocols, telling BIRD to show various information, telling it to show a routing table filtered by a filter, or asking BIRD to reconfigure. endef +ifeq ($(ARCH),arm) +TARGET_CFLAGS+=-mno-unaligned-access +endif + CONFIGURE_ARGS += --disable-libssh define Package/bird2/conffiles