]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arch/tile/Makefile: use KCFLAGS when figuring out the libgcc path.
authorChris Metcalf <cmetcalf@tilera.com>
Thu, 29 Mar 2012 19:30:19 +0000 (15:30 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Fri, 30 Mar 2012 22:56:00 +0000 (18:56 -0400)
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/Makefile

index 17acce70569b01aaf7de554a66c0f7e6e8a47157..5e4d3b98d7118f6a539d792b9ba939ff0fe169f5 100644 (file)
@@ -30,7 +30,8 @@ ifneq ($(CONFIG_DEBUG_EXTRA_FLAGS),"")
 KBUILD_CFLAGS   += $(CONFIG_DEBUG_EXTRA_FLAGS)
 endif
 
-LIBGCC_PATH     := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
+LIBGCC_PATH     := \
+  $(shell $(CC) $(KBUILD_CFLAGS) $(KCFLAGS) -print-libgcc-file-name)
 
 # Provide the path to use for "make defconfig".
 KBUILD_DEFCONFIG := $(ARCH)_defconfig