002-fix-CPPFLAGS.patch 467 B

123456789101112131415
  1. Add variable to extend the CPPFLAGS. When specifying CPPFLAGS, it will
  2. replace CPPFLAGS. When giving TARGET_CPPFLAGS it is added to the
  3. CPPFLAGS.
  4. --- a/Make.Rules
  5. +++ b/Make.Rules
  6. @@ -83,7 +83,7 @@ WARNINGS=-Wall -Wwrite-strings -Wpointer
  7. COPTS ?= -O2
  8. CFLAGS ?= $(COPTS) $(DEBUG)
  9. CFLAGS += $(WARNINGS)
  10. -CPPFLAGS += -Dlinux $(DEFINES) $(LIBCAP_INCLUDES)
  11. +CPPFLAGS += $(TARGET_CPPFLAGS) -Dlinux $(DEFINES) $(LIBCAP_INCLUDES)
  12. LDFLAGS ?= # -g
  13. BUILD_CC ?= $(CC)