Documentation: quotes around TARGET_CC command.
authorShawn J. Goff <shawn7400@gmail.com>
Mon, 30 Jan 2012 15:42:29 +0000 (10:42 -0500)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 31 Jan 2012 09:39:21 +0000 (10:39 +0100)
When ccache is enabled, TARGET_CC is "ccache gcc". Without quotes,
when assigning CC=$(TARGET_CC), only "ccache" gets assigned to CC.

Signed-off-by: Shawn J. Goff <shawn7400@gmail.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
docs/buildroot.html
docs/manual/adding-packages-gentargets.txt

index 0c1cddfff2b0c0f374b1035b36b4a085f74df192..ddfb20a740434902beb1114dd8f521a1e9fa01b7 100644 (file)
@@ -905,7 +905,7 @@ source "package/libfoo/Config.in"
 <span style="color: #000000">10:</span><span style="color: #009900"> LIBFOO_DEPENDENCIES</span> = host-libaaa libbbb
 <span style="color: #000000">11:</span>
 <span style="color: #000000">12:</span> define LIBFOO_BUILD_CMDS
-<span style="color: #000000">13:</span>        <span style="color: #009900">$(MAKE)</span> CC=<span style="color: #009900">$(TARGET_CC)</span> LD=<span style="color: #009900">$(TARGET_LD)</span> -C <span style="color: #009900">$(@D)</span> all
+<span style="color: #000000">13:</span>        <span style="color: #009900">$(MAKE)</span> CC=<span style="color: #009900">"$(TARGET_CC)"</span> LD=<span style="color: #009900">"$(TARGET_LD)"</span> -C <span style="color: #009900">$(@D)</span> all
 <span style="color: #000000">14:</span> endef
 <span style="color: #000000">15:</span>
 <span style="color: #000000">16:</span> define LIBFOO_INSTALL_STAGING_CMDS
index b34449464855d1ff79307058c8ed8ffcf9416ab6..92fce2ca4728c3781d353196ed3592499d59a31d 100644 (file)
@@ -24,7 +24,7 @@ system is based on hand-written Makefiles or shell scripts.
 10: LIBFOO_DEPENDENCIES = host-libaaa libbbb
 11:
 12: define LIBFOO_BUILD_CMDS
-13:    $(MAKE) CC=$(TARGET_CC) LD=$(TARGET_LD) -C $(@D) all
+13:    $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) all
 14: endef
 15:
 16: define LIBFOO_INSTALL_STAGING_CMDS