hardening-build.patch 942 B

123456789101112131415161718192021222324252627282930313233343536
  1. Description: Use all buildflags as provided by dpkg
  2. Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
  3. Forwarded: no
  4. Last-Update: 2016-12-06
  5. --- a/makefile
  6. +++ b/makefile
  7. @@ -9,23 +9,21 @@
  8. mandir = ${sharedir}/man
  9. O=aoe.o bpf.o ${PLATFORM}.o ata.o
  10. -CFLAGS += -Wall -g -O2
  11. -CC = gcc
  12. vblade: $O
  13. - ${CC} -o vblade $O
  14. + ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o vblade $O
  15. aoe.o : aoe.c config.h dat.h fns.h makefile
  16. - ${CC} ${CFLAGS} -c $<
  17. + ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -c $<
  18. ${PLATFORM}.o : ${PLATFORM}.c config.h dat.h fns.h makefile
  19. - ${CC} ${CFLAGS} -c $<
  20. + ${CC} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -c $<
  21. ata.o : ata.c config.h dat.h fns.h makefile
  22. - ${CC} ${CFLAGS} -c $<
  23. + ${CC} $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -c $<
  24. bpf.o : bpf.c
  25. - ${CC} ${CFLAGS} -c $<
  26. + ${CC} $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -c $<
  27. config.h : config/config.h.in makefile
  28. @if ${CC} ${CFLAGS} config/u64.c > /dev/null 2>&1; then \