mcelog-129-debugflags.patch 416 B

1234567891011121314151617181920212223
  1. From: Julian Ospald <hasufell@gentoo.org>
  2. Date: Wed Oct 24 15:41:33 UTC 2012
  3. Subject: build system
  4. don't overwrite system CFLAGS, only append "-g -Os" if DEBUG=1 is passed
  5. as argument
  6. --- a/Makefile
  7. +++ b/Makefile
  8. @@ -1,4 +1,11 @@
  9. -CFLAGS := -g -Os
  10. +CC ?= gcc
  11. +
  12. +# set to 1 to enable debug flags
  13. +DEBUG = 0
  14. +ifeq ($(DEBUG),1)
  15. +CFLAGS += -g -Os
  16. +endif
  17. +
  18. prefix := /usr
  19. etcprefix :=
  20. MANDIR := ${prefix}/share/man