oonf-olsrd2: fix building with multiple plugins - fixes #826
authorMaciej Krüger <mkg20001@gmail.com>
Mon, 2 Jan 2023 00:45:37 +0000 (01:45 +0100)
committerNick Hainke <vincent@systemli.org>
Wed, 22 Feb 2023 07:05:34 +0000 (08:05 +0100)
Code to replace colons wasn't working (debian stable)
Took it from stackoverflow, works now

Signed-off-by: Maciej Krüger <mkg20001@gmail.com>
oonf-olsrd2/Makefile

index 08e0901d69e9cf9ebf46db153664fec7505930d2..15e5731a1612ae35cdc1d842dc0087cc31d4b290 100644 (file)
@@ -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,) \