SatheeshJM

Untitled

Sep 8th, 2018
641
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.55 KB | None | 0 0
  1. --- Makefile
  2. +++ Makefile
  3. @@ -608,6 +608,12 @@ endif # $(dot-config)
  4.  # Defaults to vmlinux, but the arch makefile usually adds further targets
  5.  all: vmlinux
  6.  
  7. +# force no-pie for distro compilers that enable pie by default
  8. +KBUILD_CFLAGS += $(call cc-option, -fno-pie)
  9. +KBUILD_CFLAGS += $(call cc-option, -no-pie)
  10. +KBUILD_AFLAGS += $(call cc-option, -fno-pie)
  11. +KBUILD_CPPFLAGS += $(call cc-option, -fno-pie)
  12. +
  13.  # The arch Makefile can set ARCH_{CPP,A,C}FLAGS to override the default
  14.  # values of the respective KBUILD_* variables
  15.  ARCH_CPPFLAGS :=
Add Comment
Please, Sign In to add comment