1
0

debian.hardening-build.patch 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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,26 +9,24 @@
  8. mandir = ${sharedir}/man
  9. O=aoe.o bpf.o ${PLATFORM}.o ata.o dat.o
  10. -CFLAGS += -Wall -g -O2 -fno-common
  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. dat.o : dat.c
  28. - ${CC} ${CFLAGS} -c $<
  29. + ${CC} $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -c $<
  30. config.h : config/config.h.in makefile
  31. @if ${CC} ${CFLAGS} config/u64.c > /dev/null 2>&1; then \