Commit 8995ac87 authored by Segher Boessenkool's avatar Segher Boessenkool Committed by Paul Mackerras

[POWERPC] Specify GNUTARGET on $(AR) invocations

Without this, some versions of GNU ar fail to create
an archive index if the object files it is packing
together are of a different object format than ar's
default format (for example, binutils compiled to
default to 64-bit, with 32-bit objects).
Signed-off-by: default avatarSegher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 847f5976
...@@ -29,7 +29,7 @@ CROSS32CC := $(CC) -m32 ...@@ -29,7 +29,7 @@ CROSS32CC := $(CC) -m32
CROSS32AS := $(AS) -a32 CROSS32AS := $(AS) -a32
CROSS32LD := $(LD) -m elf32ppc CROSS32LD := $(LD) -m elf32ppc
CROSS32OBJCOPY := $(OBJCOPY) CROSS32OBJCOPY := $(OBJCOPY)
CROSS32AR := $(AR) CROSS32AR := GNUTARGET=elf32-powerpc $(AR)
endif endif
endif endif
...@@ -58,6 +58,7 @@ ifeq ($(HAS_BIARCH),y) ...@@ -58,6 +58,7 @@ ifeq ($(HAS_BIARCH),y)
override AS += -a$(SZ) override AS += -a$(SZ)
override LD += -m elf$(SZ)ppc override LD += -m elf$(SZ)ppc
override CC += -m$(SZ) override CC += -m$(SZ)
override AR := GNUTARGET=elf$(SZ)-powerpc $(AR)
endif endif
LDFLAGS_vmlinux := -Bstatic LDFLAGS_vmlinux := -Bstatic
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment