10_improve-hardening.patch 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. Description: improve the GCC hardening, fixing Makefile.am.
  2. Author: Joao Eriberto Mota Filho <eriberto@debian.org>
  3. Last-Update: 2016-11-20
  4. Index: scrot-0.8/Makefile.am
  5. ===================================================================
  6. --- scrot-0.8.orig/Makefile.am
  7. +++ scrot-0.8/Makefile.am
  8. @@ -5,7 +5,7 @@ AUTOMAKE_OPTIONS = 1.4 foreign
  9. # A list of all the files in the current directory which can be regenerated
  10. MAINTAINERCLEANFILES = Makefile.in scrot.spec
  11. -LDFLAGS = -L/usr/X11R6/lib -L/usr/lib -L/usr/local/lib
  12. +AM_LDFLAGS = -L/usr/X11R6/lib -L/usr/lib -L/usr/local/lib
  13. INCLUDES = -I/usr/X11R6/include \
  14. $(X_CFLAGS) -I$(prefix)/include -I$(includedir) -I.
  15. Index: scrot-0.8/src/Makefile.am
  16. ===================================================================
  17. --- scrot-0.8.orig/src/Makefile.am
  18. +++ scrot-0.8/src/Makefile.am
  19. @@ -1,7 +1,7 @@
  20. # A list of all the files in the current directory which can be regenerated
  21. -MAINTAINERCLEANFILES = Makefile.in
  22. +MAINTAINERCLEANFILES = Makefile.in
  23. -LDFLAGS = -L/usr/X11R6/lib
  24. +AM_LDFLAGS = -L/usr/X11R6/lib
  25. INCLUDES = -g -O3 -Wall -I/usr/X11R6/include \
  26. $(X_CFLAGS) -I$(prefix)/include -I$(includedir) -I. \
  27. -DPREFIX=\""$(prefix)"\" @GIBLIB_CFLAGS@