Advertisement
Guest User

Untitled

a guest
Jan 8th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. --- Makefile.orig 2018-01-08 20:51:35.059457728 +0900
  2. +++ Makefile 2018-01-08 21:48:09.062891308 +0900
  3. @@ -151,6 +151,16 @@
  4.  
  5. EXTRA_CFLAGS += $(CFLAGS_EXTRA)
  6.  
  7. +ifeq ($(CC),gcc)
  8. + GCC_VER := $(shell gcc -dumpversion | cut -d "." -f1)
  9. +
  10. + ifeq (1, $(shell [ $(GCC_VER) -ge 5 ] && echo 1 || echo 0))
  11. + ifeq (1, $(shell gcc -dumpspecs | grep no-pie > /dev/null 2>&1 && echo 1 || echo 0))
  12. + EXTRA_CFLAGS += -fno-pie
  13. + endif
  14. + endif
  15. +endif
  16. +
  17. RHC := $(KSRC)/include/linux/rhconfig.h
  18. ifneq (,$(wildcard $(RHC)))
  19. # 7.3 typo in rhconfig.h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement