aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2016-05-17 14:01:18 +0800
committerLey Foon Tan <[email protected]>2016-05-17 14:31:20 +0800
commitfb75a2bb53a16069e2837ea1a4fa1bd99d636dd4 (patch)
tree947f9022bb447bf17e00430caa01644c1f45407a
parent2dcd0af568b0cf583645c8a317dd12e344b1c72a (diff)
nios2: Fix libgcc location detection
The extra CFLAGS required for correct operation of the toolchain are not propagated into the libgcc detection code. In case of the compiler from poky sdk, these extra CFLAGS contain the location of compiler sysroot (the --sysroot= option) and without this option, the location of libgcc is not properly reported. Add the missing CFLAGS to address this issue. Signed-off-by: Marek Vasut <[email protected]> Cc: Ley Foon Tan <[email protected]> Cc: Romain Perier <[email protected]> Acked-by: Romain Perier <[email protected]> Acked-by: Ley Foon Tan <[email protected]>
-rw-r--r--arch/nios2/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/nios2/Makefile b/arch/nios2/Makefile
index 2328f82ba2a8..08130febf0a3 100644
--- a/arch/nios2/Makefile
+++ b/arch/nios2/Makefile
@@ -20,7 +20,7 @@ UTS_SYSNAME = Linux
export MMU
-LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
+LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) $(KCFLAGS) -print-libgcc-file-name)
KBUILD_CFLAGS += -pipe -D__linux__ -D__ELF__
KBUILD_CFLAGS += $(if $(CONFIG_NIOS2_HW_MUL_SUPPORT),-mhw-mul,-mno-hw-mul)