use-dpkg-buildflags.patch 560 B

123456789101112131415161718
  1. Description: Use build flags from environment (dpkg-buildflags).
  2. Necessary for hardening flags.
  3. Author: Simon Ruderich <simon@ruderich.org>
  4. Last-Update: 2012-04-24
  5. Bug-Closed: http://bugs.debian.org/670230
  6. --- a/Makefile
  7. +++ b/Makefile
  8. @@ -173,7 +173,7 @@
  9. $(MM_DEF) \
  10. $(SHMEM_DEF)
  11. -ALL_FLAGS = $(EXTRA_FLAGS) $(CFLAGS) $(CXXFLAGS)
  12. +ALL_FLAGS = $(EXTRA_FLAGS) $(CPPFLAGS) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS)
  13. DEBUG_DEFS = -DCOMPILER_OPTIONS="\"$(DEBUG_FLAGS) $(ALL_FLAGS)\""
  14. RELEASE_DEFS = -DCOMPILER_OPTIONS="\"$(RELEASE_FLAGS) $(ALL_FLAGS)\""