hostapd: escape double quoutes in wpad CFLAGS
[openwrt/staging/lynxis.git] / package / network / services / hostapd / Makefile
index 2558f2da0b590ba48cf88901cc4b0baeba73ba78..344896ca62174100583ae2dd9c17e1d2469e95ed 100644 (file)
@@ -299,6 +299,7 @@ define Build/Compile/wpad
                $(call Build/RunMake,wpa_supplicant,-s MULTICALL=1 dump_cflags) | \
                sed -e 's,-n ,,g' -e 's^$(TARGET_CFLAGS)^^' \
        ` > $(PKG_BUILD_DIR)/.cflags
+       sed -i 's/"/\\"/g' $(PKG_BUILD_DIR)/.cflags
        +$(call Build/RunMake,hostapd, \
                CFLAGS="$$$$(cat $(PKG_BUILD_DIR)/.cflags)" \
                MULTICALL=1 \