openwrtv4/target/linux/mpc85xx/patches-4.14/103-powerpc-fix-build-cross32ar.patch

11 lines
262 B
Diff
Raw Normal View History

--- a/arch/powerpc/Makefile
+++ b/arch/powerpc/Makefile
@@ -23,6 +23,7 @@ CROSS32AR := $(CROSS32_COMPILE)ar
ifeq ($(HAS_BIARCH),y)
ifeq ($(CROSS32_COMPILE),)
CROSS32CC := $(CC) -m32
+CROSS32AR := $(AR)
KBUILD_ARFLAGS += --target=elf32-powerpc
endif
endif