From a7a56a62d0a7089e73b9915636bf5d46552e489b Mon Sep 17 00:00:00 2001 From: Frank Kardel Date: Tue, 24 Nov 2020 16:24:26 +0100 Subject: [PATCH] frr: fix build for i386 --- frr/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frr/Makefile b/frr/Makefile index 8b815fbdf4e..9c57423299a 100644 --- a/frr/Makefile +++ b/frr/Makefile @@ -24,6 +24,11 @@ BUILD_DEFS= VARBASE .include "../../mk/bsd.prefs.mk" .include "options.mk" +# to pick up the atomic implementation on i386 +.if ${MACHINE_ARCH} == "i386" +CPPFLAGS+= -march=i586 +.endif + FRR_GROUP?= _frr FRR_VTY_GROUP?= frrvty