aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ddbfcac299c1..eccb03b88b8d 100644
--- a/Makefile
+++ b/Makefile
@@ -514,6 +514,12 @@ CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
514# disable pointer signed / unsigned warnings in gcc 4.0 514# disable pointer signed / unsigned warnings in gcc 4.0
515CFLAGS += $(call cc-option,-Wno-pointer-sign,) 515CFLAGS += $(call cc-option,-Wno-pointer-sign,)
516 516
517# Use --build-id when available.
518LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\
519 $(call ld-option, -Wl$(comma)--build-id,))
520LDFLAGS_MODULE += $(LDFLAGS_BUILD_ID)
521LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID)
522
517# Default kernel image to build when no specific target is given. 523# Default kernel image to build when no specific target is given.
518# KBUILD_IMAGE may be overruled on the command line or 524# KBUILD_IMAGE may be overruled on the command line or
519# set in the environment 525# set in the environment