bird2: Prevent unaligned access on ARM

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 <toke@toke.dk>
This commit is contained in:
Toke Høiland-Jørgensen
2024-12-06 10:39:42 +01:00
parent ff474768d9
commit 0209a1f3be

View File

@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=bird2 PKG_NAME:=bird2
PKG_VERSION:=2.15.1 PKG_VERSION:=2.15.1
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_SOURCE:=bird-$(PKG_VERSION).tar.gz PKG_SOURCE:=bird-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://bird.network.cz/pub/bird 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. a routing table filtered by a filter, or asking BIRD to reconfigure.
endef endef
ifeq ($(ARCH),arm)
TARGET_CFLAGS+=-mno-unaligned-access
endif
CONFIGURE_ARGS += --disable-libssh CONFIGURE_ARGS += --disable-libssh
define Package/bird2/conffiles define Package/bird2/conffiles