OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/gcc/0012-libitm-disable-FORTIFY.patch
  5. # Copyright (C) 2020 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From cef5e0336cfdf4afd0e01fa9e562f686b234697a Mon Sep 17 00:00:00 2001
  17. From: Ariadne Conill <ariadne@dereferenced.org>
  18. Date: Fri, 21 Aug 2020 06:53:36 +0000
  19. Subject: [PATCH 12/30] libitm: disable FORTIFY
  20. ---
  21. libitm/configure.tgt | 10 ++++++++++
  22. 1 file changed, 10 insertions(+)
  23. diff --git a/libitm/configure.tgt b/libitm/configure.tgt
  24. index 04109160e91..107b957ece3 100644
  25. --- a/libitm/configure.tgt
  26. +++ b/libitm/configure.tgt
  27. @@ -46,6 +46,16 @@ if test "$gcc_cv_have_tls" = yes ; then
  28. esac
  29. fi
  30. +# FIXME: error: inlining failed in call to always_inline
  31. +# ‘int vfprintf(FILE*, const char*, __va_list_tag*)’
  32. +# : function body can be overwritten at link time
  33. +# Disable Fortify in libitm for now. #508852
  34. +case "${target}" in
  35. + *-*-linux*)
  36. + XCFLAGS="${XCFLAGS} -U_FORTIFY_SOURCE"
  37. + ;;
  38. +esac
  39. +
  40. # Map the target cpu to an ARCH sub-directory. At the same time,
  41. # work out any special compilation flags as necessary.
  42. case "${target_cpu}" in
  43. --
  44. 2.27.0