Skip to content

Commit 4c01acc

Browse files
James BottomleyJames Bottomley
authored andcommitted
[PARISC] fix code to find libgcc
Sam broke this with commit 1f2bfbd Author: Sam Ravnborg <sam@ravnborg.org> Date: Sat May 5 10:18:41 2012 +0200 kbuild: link of vmlinux moved to a script But we should be deriving the location of libgcc in the same way as all the other archs, so fix by adding a LIBGCC variable which is evaluated in the makefile Signed-off-by: James Bottomley <JBottomley@Parallels.com>
1 parent 7314556 commit 4c01acc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎arch/parisc/Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ KBUILD_DEFCONFIG := default_defconfig
2121

2222
NM = sh $(srctree)/arch/parisc/nm
2323
CHECKFLAGS += -D__hppa__=1
24+
LIBGCC = $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
2425

2526
MACHINE := $(shell uname -m)
2627
ifeq ($(MACHINE),parisc*)
@@ -79,7 +80,7 @@ kernel-y := mm/ kernel/ math-emu/
7980
kernel-$(CONFIG_HPUX) += hpux/
8081

8182
core-y += $(addprefix arch/parisc/, $(kernel-y))
82-
libs-y += arch/parisc/lib/ `$(CC) -print-libgcc-file-name`
83+
libs-y += arch/parisc/lib/ $(LIBGCC)
8384

8485
drivers-$(CONFIG_OPROFILE) += arch/parisc/oprofile/
8586

0 commit comments

Comments
 (0)