Escape $ when building linux def files

This commit is contained in:
Brian Anderson 2011-11-02 14:22:07 -07:00
parent 1db9af1bf2
commit 558ca9b4a8

View File

@ -169,10 +169,11 @@ $$(LIBUV_LIB_$(1)): $$(wildcard \
# These could go in rt.mk or rustllvm.mk, they're needed for both.
# This regexp has a single $, escaped twice
%.linux.def: %.def.in $$(MKFILES)
@$$(call E, def: $$@)
$$(Q)echo "{" > $$@
$$(Q)sed 's/.$$/&;/' $$< >> $$@
$$(Q)sed 's/.$$$$/&;/' $$< >> $$@
$$(Q)echo "};" >> $$@
%.darwin.def: %.def.in $$(MKFILES)