Skip to content

Commit

Permalink
sparc: add -m64 when building vmlinux.lds
Browse files Browse the repository at this point in the history
David Miller noticed that the build of vmlinux.lds
failed to use the -m64 specifier.
This caused the build to break with a bi-arch gcc with
unified headers.

Add the -m64 option to CPPFLAGS_vmlinux.lds so we
have the correct defines available when building
vmliux.lds.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
  • Loading branch information
Sam Ravnborg authored and David S. Miller committed Jul 18, 2008
1 parent 597631f commit 9ae95bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/sparc64/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

CHECKFLAGS += -D__sparc__ -D__sparc_v9__ -m64

CPPFLAGS_vmlinux.lds += -Usparc
# Undefine sparc when processing vmlinux.lds - it is used
# And teach CPP we are doing 64 bit builds (for this case)
CPPFLAGS_vmlinux.lds += -m64 -Usparc

LDFLAGS := -m elf64_sparc

Expand Down

0 comments on commit 9ae95bc

Please sign in to comment.