]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[POWERPC] Specify GNUTARGET on $(AR) invocations
authorSegher Boessenkool <segher@kernel.crashing.org>
Wed, 16 May 2007 12:34:38 +0000 (22:34 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 17 May 2007 11:11:15 +0000 (21:11 +1000)
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: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/Makefile

index d6014a67694b5a78dcaf8911ef16facc66ef0b8a..6238b5875fd1c746f2f5a9fc838167bb0f3443d8 100644 (file)
@@ -29,7 +29,7 @@ CROSS32CC     := $(CC) -m32
 CROSS32AS      := $(AS) -a32
 CROSS32LD      := $(LD) -m elf32ppc
 CROSS32OBJCOPY := $(OBJCOPY)
-CROSS32AR      := $(AR)
+CROSS32AR      := GNUTARGET=elf32-powerpc $(AR)
 endif
 endif
 
@@ -58,6 +58,7 @@ ifeq ($(HAS_BIARCH),y)
 override AS    += -a$(SZ)
 override LD    += -m elf$(SZ)ppc
 override CC    += -m$(SZ)
+override AR    := GNUTARGET=elf$(SZ)-powerpc $(AR)
 endif
 
 LDFLAGS_vmlinux        := -Bstatic