diff options
author | Michal Marek | 2011-04-20 13:45:30 +0200 |
---|---|---|
committer | Michal Marek | 2011-04-20 15:39:22 +0200 |
commit | 40df759e2b9ec945f1a5ddc61b3fdfbb6583257e (patch) | |
tree | 1d727592c947dbfe33ddf89718201615488088e8 /Makefile | |
parent | initramfs: Use KBUILD_BUILD_TIMESTAMP for generated entries (diff) | |
download | kernel-qcow2-linux-40df759e2b9ec945f1a5ddc61b3fdfbb6583257e.tar.gz kernel-qcow2-linux-40df759e2b9ec945f1a5ddc61b3fdfbb6583257e.tar.xz kernel-qcow2-linux-40df759e2b9ec945f1a5ddc61b3fdfbb6583257e.zip |
kbuild: Fix build with binutils <= 2.19
The D option of ar is only available in newer versions.
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -382,6 +382,7 @@ export KBUILD_CFLAGS CFLAGS_KERNEL CFLAGS_MODULE CFLAGS_GCOV export KBUILD_AFLAGS AFLAGS_KERNEL AFLAGS_MODULE export KBUILD_AFLAGS_MODULE KBUILD_CFLAGS_MODULE KBUILD_LDFLAGS_MODULE export KBUILD_AFLAGS_KERNEL KBUILD_CFLAGS_KERNEL +export KBUILD_ARFLAGS # When compiling out-of-tree modules, put MODVERDIR in the module # tree rather than in the kernel tree. The kernel tree might @@ -612,6 +613,9 @@ KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow) # conserve stack if available KBUILD_CFLAGS += $(call cc-option,-fconserve-stack) +# use the deterministic mode of AR if available +KBUILD_ARFLAGS := $(call ar-option,D) + # check for 'asm goto' ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC)), y) KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO |