summaryrefslogtreecommitdiff
path: root/arch/sparc/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc/config.mk')
-rw-r--r--arch/sparc/config.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc/config.mk b/arch/sparc/config.mk
index 6dbf20f537..be59f58190 100644
--- a/arch/sparc/config.mk
+++ b/arch/sparc/config.mk
@@ -9,6 +9,8 @@ ifeq ($(CROSS_COMPILE),)
CROSS_COMPILE := sparc-elf-
endif
+gcclibdir := $(shell dirname `$(CC) -print-libgcc-file-name`)
+
CONFIG_STANDALONE_LOAD_ADDR ?= 0x00000000 -L $(gcclibdir) \
-T $(srctree)/examples/standalone/sparc.lds