diff options
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |
515 | CFLAGS += $(call cc-option,-Wno-pointer-sign,) | 515 | CFLAGS += $(call cc-option,-Wno-pointer-sign,) |
516 | 516 | ||
517 | # Use --build-id when available. | ||
518 | LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\ | ||
519 | $(call ld-option, -Wl$(comma)--build-id,)) | ||
520 | LDFLAGS_MODULE += $(LDFLAGS_BUILD_ID) | ||
521 | LDFLAGS_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 |