freeswitch-stable: fix sed script 349/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 15 Jul 2018 21:27:08 +0000 (23:27 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 15 Jul 2018 21:27:09 +0000 (23:27 +0200)
The sed script used on libs/unimrcp is used to set LDFLAGS using
APR_SETVAR. Since nls.mk is included there are LDFLAGS with commas. But
the macro APR_SETVAR uses commas to separate arguments, so now the
LDFLAGS are only getting partially copied.

Solve this by surrounding LDFLAGS with brackets ([...]).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/freeswitch-stable/Makefile

index e24c0cb5f24fea5846b705138bb83f62a33283b7..df85beae83522b8e91e54119d06f7b109d51c572 100644 (file)
@@ -910,7 +910,7 @@ define Build/Prepare
        echo '#codecs/mod_yuv' >> $(PKG_BUILD_DIR)/modules.conf
        echo '#event_handlers/mod_event_test' >> $(PKG_BUILD_DIR)/modules.conf
 
-       $(SED) 's|$(FS_STABLE_ANCHOR)|APR_SETVAR(LDFLAGS,$(FS_STABLE_APR_LIBS) $(TARGET_LDFLAGS))|' \
+       $(SED) 's|$(FS_STABLE_ANCHOR)|APR_SETVAR(LDFLAGS,[$(FS_STABLE_APR_LIBS) $(TARGET_LDFLAGS)])|' \
                $(PKG_BUILD_DIR)/libs/unimrcp/build/acmacros/apr.m4
 endef