frr: fix host build error on macOS
authorGeorgi Valkov <gvalkov@gmail.com>
Tue, 30 Apr 2024 14:37:11 +0000 (17:37 +0300)
committerRobert Marko <robimarko@gmail.com>
Tue, 30 Apr 2024 20:54:10 +0000 (22:54 +0200)
commit6b7d905a3aad16513a47dd4acc6e3c07683630b8
tree8f73c95946b95118adde6dc42e14484058b85d9c
parent80435f0c5187a6447cc12113a615c1e82bc485a2
frr: fix host build error on macOS

Fixes:
lib/command_graph.c:16:1: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma DEFINE_MTYPE_STATIC(LIB, CMD_TOKENS, "Command Tokens"); ^
./lib/memory.h:139:2: note: expanded from macro 'DEFINE_MTYPE_STATIC'
        DEFINE_MTYPE_ATTR(group, name, static, desc)                           \
        ^
./lib/memory.h:109:26: note: expanded from macro 'DEFINE_MTYPE_ATTR'
                __attribute__((section(".data.mtypes"))) = { {                 \

[1] https://github.com/FRRouting/frr/pull/6032
[2] https://github.com/FRRouting/frr/pull/15890

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
net/frr/Makefile
net/frr/patches/998-lib-fix-error-on-MacOS.patch [new file with mode: 0644]