From: Maciej Krüger Date: Mon, 2 Jan 2023 00:45:37 +0000 (+0100) Subject: oonf-olsrd2: fix building with multiple plugins - fixes #826 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=521a4068deb99f0bae06487116b13e2bb6cedcaa;p=feed%2Frouting.git oonf-olsrd2: fix building with multiple plugins - fixes #826 Code to replace colons wasn't working (debian stable) Took it from stackoverflow, works now Signed-off-by: Maciej Krüger --- diff --git a/oonf-olsrd2/Makefile b/oonf-olsrd2/Makefile index 08e0901..15e5731 100644 --- a/oonf-olsrd2/Makefile +++ b/oonf-olsrd2/Makefile @@ -14,8 +14,8 @@ CMAKE_INSTALL:=1 include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/cmake.mk -SPACE:= -SPACE+= +# ref https://stackoverflow.com/a/10571900/3990041 +SPACE:= $(subst ,, ) CMAKE_OPTIONAL_PLUGINS:= $(subst $(SPACE),;,$(strip \ $(if $(filter y,$(CONFIG_OONF_NHDP_AUTOLL4)),auto_ll4,) \ $(if $(filter y,$(CONFIG_OONF_OLSRV2_LAN_IMPORT)),lan_import,) \