This patch fixes passing linker flags to the compiler.

--- lazarus/components/chmhelp/lhelp/Makefile.fpc
+++ lazarus/components/chmhelp/lhelp/Makefile.fpc
@@ -64,7 +64,7 @@
 .PHONY: all clean
 
 all:    $(COMPILER_UNITTARGETDIR)
-        $(MAKE) --assume-new=lhelp.lpr OPT="$(LHELP_OPT) $(OPT)" lhelp$(EXEEXT)
+        $(MAKE) --assume-new=lhelp.lpr OPT="$(LHELP_OPT) $(subst ",\",${OPT})" lhelp$(EXEEXT)
 
 # end.
 
