0001-src-Makefile.am-do-not-hardcode-fstack-protector-str.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. From d209ef650cf2f760ef8217748ab10716bd22d60d Mon Sep 17 00:00:00 2001
  2. From: Peter Korsgaard <peter@korsgaard.com>
  3. Date: Sun, 24 Jun 2018 10:35:37 +0200
  4. Subject: [PATCH] src/Makefile.am: do not hardcode -fstack-protector-strong
  5. davfs2 does not truly require -fstack-protector-strong, so do not hardcode
  6. it.
  7. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
  8. ---
  9. src/Makefile.am | 3 +--
  10. src/Makefile.in | 3 +--
  11. 2 files changed, 2 insertions(+), 4 deletions(-)
  12. diff --git a/src/Makefile.am b/src/Makefile.am
  13. index f083462..ed6b682 100644
  14. --- a/src/Makefile.am
  15. +++ b/src/Makefile.am
  16. @@ -32,8 +32,7 @@ mount_davfs_SOURCES = cache.c dav_coda.c \
  17. kernel_interface.h mount_davfs.h webdav.h
  18. umount_davfs_SOURCES = umount_davfs.c defaults.h
  19. -AM_CFLAGS = -Wall -Werror=format-security \
  20. - -fstack-protector-strong --param=ssp-buffer-size=4
  21. +AM_CFLAGS = -Wall -Werror=format-security
  22. DEFS = -DPROGRAM_NAME=\"mount.davfs\" \
  23. -DDAV_SYS_CONF_DIR=\"$(pkgsysconfdir)\" \
  24. -DDAV_LOCALSTATE_DIR=\"$(dav_localstatedir)\" \
  25. diff --git a/src/Makefile.in b/src/Makefile.in
  26. index 9fee542..e98758d 100644
  27. --- a/src/Makefile.in
  28. +++ b/src/Makefile.in
  29. @@ -315,8 +315,7 @@ mount_davfs_SOURCES = cache.c dav_coda.c \
  30. kernel_interface.h mount_davfs.h webdav.h
  31. umount_davfs_SOURCES = umount_davfs.c defaults.h
  32. -AM_CFLAGS = -Wall -Werror=format-security \
  33. - -fstack-protector-strong --param=ssp-buffer-size=4
  34. +AM_CFLAGS = -Wall -Werror=format-security
  35. all: all-am
  36. --
  37. 2.11.0